home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Technology Seed / Jan. '98 ATS.toast / QuickTime™ 3.0b11 / QTPublicInterfaces / PInterfaces / QuickTimeComponents.p < prev    next >
Encoding:
Text File  |  1998-01-12  |  131.8 KB  |  2,979 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        QuickTimeComponents.p
  3.  
  4.      Contains:    QuickTime interfaces
  5.  
  6.      Version:    Technology:    
  7.                  Release:    QuickTime 3.0 Beta
  8.  
  9.      Copyright:    © 1990-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT QuickTimeComponents;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __QUICKTIMECOMPONENTS__}
  28. {$SETC __QUICKTIMECOMPONENTS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC QuickTimeComponentsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __COMPONENTS__}
  35. {$I Components.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __IMAGECOMPRESSION__}
  38. {$I ImageCompression.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __MOVIES__}
  41. {$I Movies.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __QUICKDRAW__}
  44. {$I Quickdraw.p}
  45. {$ENDC}
  46. {$IFC UNDEFINED __VIDEO__}
  47. {$I Video.p}
  48. {$ENDC}
  49. {$IFC UNDEFINED __MACMEMORY__}
  50. {$I MacMemory.p}
  51. {$ENDC}
  52. {$IFC UNDEFINED __SOUND__}
  53. {$I Sound.p}
  54. {$ENDC}
  55. {$IFC UNDEFINED __QUICKTIMEMUSIC__}
  56. {$I QuickTimeMusic.p}
  57. {$ENDC}
  58.  
  59.  
  60. {$PUSH}
  61. {$ALIGN MAC68K}
  62. {$LibExport+}
  63.  
  64.  
  65. CONST
  66.     clockComponentType            = 'clok';
  67.     systemTickClock                = 'tick';                        {  subtype: 60ths since boot         }
  68.     systemSecondClock            = 'seco';                        {  subtype: seconds since 1904         }
  69.     systemMillisecondClock        = 'mill';                        {  subtype: 1000ths since boot         }
  70.     systemMicrosecondClock        = 'micr';                        {  subtype: 1000000ths since boot     }
  71.  
  72.     kClockRateIsLinear            = 1;
  73.     kClockImplementsCallBacks    = 2;
  74.     kClockCanHandleIntermittentSound = 4;                        {  sound clocks only  }
  75.  
  76. {* These are Clock procedures *}
  77. FUNCTION ClockGetTime(aClock: ComponentInstance; VAR out: TimeRecord): ComponentResult;
  78.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  79.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  80.     {$ENDC}
  81.  
  82. FUNCTION ClockNewCallBack(aClock: ComponentInstance; tb: TimeBase; callBackType: INTEGER): QTCallBack;
  83.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  84.     INLINE $2F3C, $0006, $0002, $7000, $A82A;
  85.     {$ENDC}
  86. FUNCTION ClockDisposeCallBack(aClock: ComponentInstance; cb: QTCallBack): ComponentResult;
  87.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  88.     INLINE $2F3C, $0004, $0003, $7000, $A82A;
  89.     {$ENDC}
  90. FUNCTION ClockCallMeWhen(aClock: ComponentInstance; cb: QTCallBack; param1: LONGINT; param2: LONGINT; param3: LONGINT): ComponentResult;
  91.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  92.     INLINE $2F3C, $0010, $0004, $7000, $A82A;
  93.     {$ENDC}
  94. FUNCTION ClockCancelCallBack(aClock: ComponentInstance; cb: QTCallBack): ComponentResult;
  95.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  96.     INLINE $2F3C, $0004, $0005, $7000, $A82A;
  97.     {$ENDC}
  98. FUNCTION ClockRateChanged(aClock: ComponentInstance; cb: QTCallBack): ComponentResult;
  99.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  100.     INLINE $2F3C, $0004, $0006, $7000, $A82A;
  101.     {$ENDC}
  102. FUNCTION ClockTimeChanged(aClock: ComponentInstance; cb: QTCallBack): ComponentResult;
  103.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  104.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  105.     {$ENDC}
  106. FUNCTION ClockSetTimeBase(aClock: ComponentInstance; tb: TimeBase): ComponentResult;
  107.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  108.     INLINE $2F3C, $0004, $0008, $7000, $A82A;
  109.     {$ENDC}
  110. FUNCTION ClockStartStopChanged(aClock: ComponentInstance; cb: QTCallBack; startChanged: BOOLEAN; stopChanged: BOOLEAN): ComponentResult;
  111.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  112.     INLINE $2F3C, $0008, $0009, $7000, $A82A;
  113.     {$ENDC}
  114. FUNCTION ClockGetRate(aClock: ComponentInstance; VAR rate: Fixed): ComponentResult;
  115.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  116.     INLINE $2F3C, $0004, $000A, $7000, $A82A;
  117.     {$ENDC}
  118.  
  119.  
  120.  
  121.  
  122. CONST
  123.     StandardCompressionType        = 'scdi';
  124.     StandardCompressionSubType    = 'imag';
  125.     StandardCompressionSubTypeSound = 'soun';
  126.  
  127.  
  128.  
  129. TYPE
  130. {$IFC TYPED_FUNCTION_POINTERS}
  131.     SCModalFilterProcPtr = FUNCTION(theDialog: DialogPtr; VAR theEvent: EventRecord; VAR itemHit: INTEGER; refcon: LONGINT): BOOLEAN;
  132. {$ELSEC}
  133.     SCModalFilterProcPtr = ProcPtr;
  134. {$ENDC}
  135.  
  136. {$IFC TYPED_FUNCTION_POINTERS}
  137.     SCModalHookProcPtr = FUNCTION(theDialog: DialogPtr; itemHit: INTEGER; params: UNIV Ptr; refcon: LONGINT): INTEGER;
  138. {$ELSEC}
  139.     SCModalHookProcPtr = ProcPtr;
  140. {$ENDC}
  141.  
  142.     SCModalFilterUPP = UniversalProcPtr;
  143.     SCModalHookUPP = UniversalProcPtr;
  144. {     Preference flags. }
  145.  
  146. CONST
  147.     scListEveryCodec            = $00000002;
  148.     scAllowZeroFrameRate        = $00000004;
  149.     scAllowZeroKeyFrameRate        = $00000008;
  150.     scShowBestDepth                = $00000010;
  151.     scUseMovableModal            = $00000020;
  152.     scDisableFrameRateItem        = $00000040;
  153.  
  154.  
  155. {     Possible test flags for setting test image. }
  156.     scPreferCropping            = $01;
  157.     scPreferScaling                = $02;
  158.     scPreferScalingAndCropping    = $03;
  159.     scDontDetermineSettingsFromTestImage = $04;
  160.  
  161.  
  162. {     Dimensions of the image preview box. }
  163.     scTestImageWidth            = 80;
  164.     scTestImageHeight            = 80;
  165.  
  166. {     Possible items returned by hookProc. }
  167.     scOKItem                    = 1;
  168.     scCancelItem                = 2;
  169.     scCustomItem                = 3;
  170.  
  171. {     Result returned when user cancelled. }
  172.     scUserCancelled                = 1;
  173.  
  174.  
  175.  
  176. {     Get/SetInfo structures. }
  177.  
  178.  
  179. TYPE
  180.     SCSpatialSettingsPtr = ^SCSpatialSettings;
  181.     SCSpatialSettings = RECORD
  182.         codecType:                CodecType;
  183.         codec:                    CodecComponent;
  184.         depth:                    INTEGER;
  185.         spatialQuality:            CodecQ;
  186.     END;
  187.  
  188.     SCTemporalSettingsPtr = ^SCTemporalSettings;
  189.     SCTemporalSettings = RECORD
  190.         temporalQuality:        CodecQ;
  191.         frameRate:                Fixed;
  192.         keyFrameRate:            LONGINT;
  193.     END;
  194.  
  195.     SCDataRateSettingsPtr = ^SCDataRateSettings;
  196.     SCDataRateSettings = RECORD
  197.         dataRate:                LONGINT;
  198.         frameDuration:            LONGINT;
  199.         minSpatialQuality:        CodecQ;
  200.         minTemporalQuality:        CodecQ;
  201.     END;
  202.  
  203.     SCExtendedProcsPtr = ^SCExtendedProcs;
  204.     SCExtendedProcs = RECORD
  205.         filterProc:                SCModalFilterUPP;
  206.         hookProc:                SCModalHookUPP;
  207.         refcon:                    LONGINT;
  208.         customName:                Str31;
  209.     END;
  210.  
  211. {     Get/SetInfo selectors }
  212.  
  213. CONST
  214.     scSpatialSettingsType        = 'sptl';                        {  pointer to SCSpatialSettings struct }
  215.     scTemporalSettingsType        = 'tprl';                        {  pointer to SCTemporalSettings struct }
  216.     scDataRateSettingsType        = 'drat';                        {  pointer to SCDataRateSettings struct }
  217.     scColorTableType            = 'clut';                        {  pointer to CTabHandle }
  218.     scProgressProcType            = 'prog';                        {  pointer to ProgressRecord struct }
  219.     scExtendedProcsType            = 'xprc';                        {  pointer to SCExtendedProcs struct }
  220.     scPreferenceFlagsType        = 'pref';                        {  pointer to long }
  221.     scSettingsStateType            = 'ssta';                        {  pointer to Handle }
  222.     scSequenceIDType            = 'sequ';                        {  pointer to ImageSequence }
  223.     scWindowPositionType        = 'wndw';                        {  pointer to Point }
  224.     scCodecFlagsType            = 'cflg';                        {  pointer to CodecFlags }
  225.     scCodecSettingsType            = 'cdec';                        {  pointer to Handle }
  226.     scForceKeyValueType            = 'ksim';                        {  pointer to long }
  227.     scSoundSampleRateType        = 'ssrt';                        {  pointer to UnsignedFixed }
  228.     scSoundSampleSizeType        = 'ssss';                        {  pointer to short }
  229.     scSoundChannelCountType        = 'sscc';                        {  pointer to short }
  230.     scSoundCompressionType        = 'ssct';                        {  pointer to OSType }
  231.     scCompressionListType        = 'ctyl';                        {  pointer to OSType Handle }
  232.  
  233. {     scTypeNotFoundErr returned by Get/SetInfo when type cannot be found. }
  234.  
  235.  
  236.  
  237. TYPE
  238.     SCParamsPtr = ^SCParams;
  239.     SCParams = RECORD
  240.         flags:                    LONGINT;
  241.         theCodecType:            CodecType;
  242.         theCodec:                CodecComponent;
  243.         spatialQuality:            CodecQ;
  244.         temporalQuality:        CodecQ;
  245.         depth:                    INTEGER;
  246.         frameRate:                Fixed;
  247.         keyFrameRate:            LONGINT;
  248.         reserved1:                LONGINT;
  249.         reserved2:                LONGINT;
  250.     END;
  251.  
  252.  
  253. CONST
  254.     scGetCompression            = 1;
  255.     scShowMotionSettings        = $00000001;
  256.     scSettingsChangedItem        = -1;
  257.  
  258.     scCompressFlagIgnoreIdenticalFrames = 1;
  259.  
  260. {  QTAtomTypes for atoms found in settings atom containers }
  261.     kQTSettingsVideo            = 'vide';                        {  Container for video/image compression related atoms (Get/SetInfo selectors) }
  262.     kQTSettingsSound            = 'soun';                        {  Container for sound compression related atoms (Get/SetInfo selectors) }
  263.  
  264.  
  265. {* These are Progress procedures *}
  266. FUNCTION SCGetCompressionExtended(ci: ComponentInstance; VAR params: SCParams; where: Point; filterProc: SCModalFilterUPP; hookProc: SCModalHookUPP; refcon: LONGINT; customName: StringPtr): ComponentResult;
  267.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  268.     INLINE $2F3C, $0018, $0001, $7000, $A82A;
  269.     {$ENDC}
  270. FUNCTION SCPositionRect(ci: ComponentInstance; VAR rp: Rect; VAR where: Point): ComponentResult;
  271.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  272.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  273.     {$ENDC}
  274. FUNCTION SCPositionDialog(ci: ComponentInstance; id: INTEGER; VAR where: Point): ComponentResult;
  275.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  276.     INLINE $2F3C, $0006, $0003, $7000, $A82A;
  277.     {$ENDC}
  278. FUNCTION SCSetTestImagePictHandle(ci: ComponentInstance; testPict: PicHandle; VAR testRect: Rect; testFlags: INTEGER): ComponentResult;
  279.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  280.     INLINE $2F3C, $000A, $0004, $7000, $A82A;
  281.     {$ENDC}
  282. FUNCTION SCSetTestImagePictFile(ci: ComponentInstance; testFileRef: INTEGER; VAR testRect: Rect; testFlags: INTEGER): ComponentResult;
  283.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  284.     INLINE $2F3C, $0008, $0005, $7000, $A82A;
  285.     {$ENDC}
  286. FUNCTION SCSetTestImagePixMap(ci: ComponentInstance; testPixMap: PixMapHandle; VAR testRect: Rect; testFlags: INTEGER): ComponentResult;
  287.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  288.     INLINE $2F3C, $000A, $0006, $7000, $A82A;
  289.     {$ENDC}
  290. FUNCTION SCGetBestDeviceRect(ci: ComponentInstance; VAR r: Rect): ComponentResult;
  291.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  292.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  293.     {$ENDC}
  294.  
  295. FUNCTION SCRequestImageSettings(ci: ComponentInstance): ComponentResult;
  296.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  297.     INLINE $2F3C, $0000, $000A, $7000, $A82A;
  298.     {$ENDC}
  299. FUNCTION SCCompressImage(ci: ComponentInstance; src: PixMapHandle; {CONST}VAR srcRect: Rect; VAR desc: ImageDescriptionHandle; VAR data: Handle): ComponentResult;
  300.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  301.     INLINE $2F3C, $0010, $000B, $7000, $A82A;
  302.     {$ENDC}
  303. FUNCTION SCCompressPicture(ci: ComponentInstance; srcPicture: PicHandle; dstPicture: PicHandle): ComponentResult;
  304.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  305.     INLINE $2F3C, $0008, $000C, $7000, $A82A;
  306.     {$ENDC}
  307. FUNCTION SCCompressPictureFile(ci: ComponentInstance; srcRefNum: INTEGER; dstRefNum: INTEGER): ComponentResult;
  308.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  309.     INLINE $2F3C, $0004, $000D, $7000, $A82A;
  310.     {$ENDC}
  311. FUNCTION SCRequestSequenceSettings(ci: ComponentInstance): ComponentResult;
  312.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  313.     INLINE $2F3C, $0000, $000E, $7000, $A82A;
  314.     {$ENDC}
  315. FUNCTION SCCompressSequenceBegin(ci: ComponentInstance; src: PixMapHandle; {CONST}VAR srcRect: Rect; VAR desc: ImageDescriptionHandle): ComponentResult;
  316.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  317.     INLINE $2F3C, $000C, $000F, $7000, $A82A;
  318.     {$ENDC}
  319. FUNCTION SCCompressSequenceFrame(ci: ComponentInstance; src: PixMapHandle; {CONST}VAR srcRect: Rect; VAR data: Handle; VAR dataSize: LONGINT; VAR notSyncFlag: INTEGER): ComponentResult;
  320.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  321.     INLINE $2F3C, $0014, $0010, $7000, $A82A;
  322.     {$ENDC}
  323. FUNCTION SCCompressSequenceEnd(ci: ComponentInstance): ComponentResult;
  324.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  325.     INLINE $2F3C, $0000, $0011, $7000, $A82A;
  326.     {$ENDC}
  327. FUNCTION SCDefaultPictHandleSettings(ci: ComponentInstance; srcPicture: PicHandle; motion: INTEGER): ComponentResult;
  328.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  329.     INLINE $2F3C, $0006, $0012, $7000, $A82A;
  330.     {$ENDC}
  331. FUNCTION SCDefaultPictFileSettings(ci: ComponentInstance; srcRef: INTEGER; motion: INTEGER): ComponentResult;
  332.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  333.     INLINE $2F3C, $0004, $0013, $7000, $A82A;
  334.     {$ENDC}
  335. FUNCTION SCDefaultPixMapSettings(ci: ComponentInstance; src: PixMapHandle; motion: INTEGER): ComponentResult;
  336.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  337.     INLINE $2F3C, $0006, $0014, $7000, $A82A;
  338.     {$ENDC}
  339. FUNCTION SCGetInfo(ci: ComponentInstance; infoType: OSType; info: UNIV Ptr): ComponentResult;
  340.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  341.     INLINE $2F3C, $0008, $0015, $7000, $A82A;
  342.     {$ENDC}
  343. FUNCTION SCSetInfo(ci: ComponentInstance; infoType: OSType; info: UNIV Ptr): ComponentResult;
  344.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  345.     INLINE $2F3C, $0008, $0016, $7000, $A82A;
  346.     {$ENDC}
  347. FUNCTION SCNewGWorld(ci: ComponentInstance; VAR gwp: GWorldPtr; VAR rp: Rect; flags: GWorldFlags): ComponentResult;
  348.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  349.     INLINE $2F3C, $000C, $0017, $7000, $A82A;
  350.     {$ENDC}
  351. FUNCTION SCSetCompressFlags(ci: ComponentInstance; flags: LONGINT): ComponentResult;
  352.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  353.     INLINE $2F3C, $0004, $0018, $7000, $A82A;
  354.     {$ENDC}
  355. FUNCTION SCGetCompressFlags(ci: ComponentInstance; VAR flags: LONGINT): ComponentResult;
  356.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  357.     INLINE $2F3C, $0004, $0019, $7000, $A82A;
  358.     {$ENDC}
  359. FUNCTION SCGetSettingsAsText(ci: ComponentInstance; VAR text: Handle): ComponentResult;
  360.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  361.     INLINE $2F3C, $0004, $001A, $7000, $A82A;
  362.     {$ENDC}
  363. FUNCTION SCGetSettingsAsAtomContainer(ci: ComponentInstance; VAR settings: QTAtomContainer): ComponentResult;
  364.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  365.     INLINE $2F3C, $0004, $001B, $7000, $A82A;
  366.     {$ENDC}
  367. FUNCTION SCSetSettingsFromAtomContainer(ci: ComponentInstance; settings: QTAtomContainer): ComponentResult;
  368.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  369.     INLINE $2F3C, $0004, $001C, $7000, $A82A;
  370.     {$ENDC}
  371.  
  372.  
  373.  
  374.  
  375. CONST
  376.     TweenComponentType            = 'twen';
  377.  
  378.  
  379. TYPE
  380.     TweenerComponent                    = ComponentInstance;
  381.     TweenRecordPtr = ^TweenRecord;
  382. {$IFC TYPED_FUNCTION_POINTERS}
  383.     TweenerDataProcPtr = FUNCTION(VAR tr: TweenRecord; tweenData: UNIV Ptr; tweenDataSize: LONGINT; dataDescriptionSeed: LONGINT; dataDescription: Handle; asyncCompletionProc: ICMCompletionProcRecordPtr; transferProc: UniversalProcPtr; refCon: UNIV Ptr): ComponentResult;
  384. {$ELSEC}
  385.     TweenerDataProcPtr = ProcPtr;
  386. {$ENDC}
  387.  
  388.     TweenerDataUPP = UniversalProcPtr;
  389.     TweenRecord = RECORD
  390.         version:                LONGINT;
  391.         container:                QTAtomContainer;
  392.         tweenAtom:                QTAtom;
  393.         dataAtom:                QTAtom;
  394.         percent:                Fixed;
  395.         dataProc:                TweenerDataUPP;
  396.         private1:                Ptr;
  397.         private2:                Ptr;
  398.     END;
  399.  
  400.     TweenV1RecordPtr = ^TweenV1Record;
  401.     TweenV1Record = RECORD
  402.         version:                LONGINT;
  403.         container:                QTAtomContainer;
  404.         tweenAtom:                QTAtom;
  405.         dataAtom:                QTAtom;
  406.         percent:                Fixed;
  407.         dataProc:                TweenerDataUPP;
  408.         private1:                Ptr;
  409.         private2:                Ptr;
  410.         fractPercent:            Fract;
  411.     END;
  412.  
  413. FUNCTION TweenerInitialize(tc: TweenerComponent; container: QTAtomContainer; tweenAtom: QTAtom; dataAtom: QTAtom): ComponentResult;
  414.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  415.     INLINE $2F3C, $000C, $0001, $7000, $A82A;
  416.     {$ENDC}
  417. FUNCTION TweenerDoTween(tc: TweenerComponent; VAR tr: TweenRecord): ComponentResult;
  418.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  419.     INLINE $2F3C, $0004, $0002, $7000, $A82A;
  420.     {$ENDC}
  421. FUNCTION TweenerReset(tc: TweenerComponent): ComponentResult;
  422.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  423.     INLINE $2F3C, $0000, $0003, $7000, $A82A;
  424.     {$ENDC}
  425.  
  426.  
  427.  
  428. CONST
  429.     TCSourceRefNameType            = 'name';
  430.  
  431.     tcDropFrame                    = $01;
  432.     tc24HourMax                    = $02;
  433.     tcNegTimesOK                = $04;
  434.     tcCounter                    = $08;
  435.  
  436.  
  437. TYPE
  438.     TimeCodeDefPtr = ^TimeCodeDef;
  439.     TimeCodeDef = RECORD
  440.         flags:                    LONGINT;                                {  drop-frame, etc. }
  441.         fTimeScale:                TimeScale;                                {  time scale of frameDuration (eg. 2997) }
  442.         frameDuration:            TimeValue;                                {  duration of each frame (eg. 100) }
  443.         numFrames:                SInt8;                                    {  frames/sec for timecode (eg. 30) OR frames/tick for counter mode }
  444.         padding:                SInt8;                                    {  unused padding byte }
  445.     END;
  446.  
  447.  
  448. CONST
  449.     tctNegFlag                    = $80;                            {  negative bit is in minutes }
  450.  
  451.  
  452. TYPE
  453.     TimeCodeTimePtr = ^TimeCodeTime;
  454.     TimeCodeTime = RECORD
  455.         hours:                    SInt8;
  456.         minutes:                SInt8;
  457.         seconds:                SInt8;
  458.         frames:                    SInt8;
  459.     END;
  460.  
  461.     TimeCodeCounterPtr = ^TimeCodeCounter;
  462.     TimeCodeCounter = RECORD
  463.         counter:                LONGINT;
  464.     END;
  465.  
  466.     TimeCodeRecordPtr = ^TimeCodeRecord;
  467.     TimeCodeRecord = RECORD
  468.         CASE INTEGER OF
  469.         0: (
  470.             t:                    TimeCodeTime;
  471.             );
  472.         1: (
  473.             c:                    TimeCodeCounter;
  474.             );
  475.     END;
  476.  
  477.     TimeCodeDescriptionPtr = ^TimeCodeDescription;
  478.     TimeCodeDescription = RECORD
  479.         descSize:                LONGINT;                                {  standard sample description header }
  480.         dataFormat:                LONGINT;
  481.         resvd1:                    LONGINT;
  482.         resvd2:                    INTEGER;
  483.         dataRefIndex:            INTEGER;
  484.         flags:                    LONGINT;                                {  timecode specific stuff }
  485.         timeCodeDef:            TimeCodeDef;
  486.         srcRef:                    ARRAY [0..0] OF LONGINT;
  487.     END;
  488.  
  489.     TimeCodeDescriptionHandle            = ^TimeCodeDescriptionPtr;
  490.  
  491. CONST
  492.     tcdfShowTimeCode            = $01;
  493.  
  494.  
  495. TYPE
  496.     TCTextOptionsPtr = ^TCTextOptions;
  497.     TCTextOptions = RECORD
  498.         txFont:                    INTEGER;
  499.         txFace:                    INTEGER;
  500.         txSize:                    INTEGER;
  501.         pad:                    INTEGER;                                {  let's make it longword aligned - thanks..  }
  502.         foreColor:                RGBColor;
  503.         backColor:                RGBColor;
  504.     END;
  505.  
  506. FUNCTION TCGetCurrentTimeCode(mh: MediaHandler; VAR frameNum: LONGINT; VAR tcdef: TimeCodeDef; VAR tcrec: TimeCodeRecord; VAR srcRefH: UserData): HandlerError;
  507.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  508.     INLINE $2F3C, $0010, $0101, $7000, $A82A;
  509.     {$ENDC}
  510. FUNCTION TCGetTimeCodeAtTime(mh: MediaHandler; mediaTime: TimeValue; VAR frameNum: LONGINT; VAR tcdef: TimeCodeDef; VAR tcdata: TimeCodeRecord; VAR srcRefH: UserData): HandlerError;
  511.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  512.     INLINE $2F3C, $0014, $0102, $7000, $A82A;
  513.     {$ENDC}
  514. FUNCTION TCTimeCodeToString(mh: MediaHandler; VAR tcdef: TimeCodeDef; VAR tcrec: TimeCodeRecord; tcStr: StringPtr): HandlerError;
  515.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  516.     INLINE $2F3C, $000C, $0103, $7000, $A82A;
  517.     {$ENDC}
  518. FUNCTION TCTimeCodeToFrameNumber(mh: MediaHandler; VAR tcdef: TimeCodeDef; VAR tcrec: TimeCodeRecord; VAR frameNumber: LONGINT): HandlerError;
  519.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  520.     INLINE $2F3C, $000C, $0104, $7000, $A82A;
  521.     {$ENDC}
  522. FUNCTION TCFrameNumberToTimeCode(mh: MediaHandler; frameNumber: LONGINT; VAR tcdef: TimeCodeDef; VAR tcrec: TimeCodeRecord): HandlerError;
  523.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  524.     INLINE $2F3C, $000C, $0105, $7000, $A82A;
  525.     {$ENDC}
  526. FUNCTION TCGetSourceRef(mh: MediaHandler; tcdH: TimeCodeDescriptionHandle; VAR srefH: UserData): HandlerError;
  527.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  528.     INLINE $2F3C, $0008, $0106, $7000, $A82A;
  529.     {$ENDC}
  530. FUNCTION TCSetSourceRef(mh: MediaHandler; tcdH: TimeCodeDescriptionHandle; srefH: UserData): HandlerError;
  531.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  532.     INLINE $2F3C, $0008, $0107, $7000, $A82A;
  533.     {$ENDC}
  534. FUNCTION TCSetTimeCodeFlags(mh: MediaHandler; flags: LONGINT; flagsMask: LONGINT): HandlerError;
  535.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  536.     INLINE $2F3C, $0008, $0108, $7000, $A82A;
  537.     {$ENDC}
  538. FUNCTION TCGetTimeCodeFlags(mh: MediaHandler; VAR flags: LONGINT): HandlerError;
  539.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  540.     INLINE $2F3C, $0004, $0109, $7000, $A82A;
  541.     {$ENDC}
  542. FUNCTION TCSetDisplayOptions(mh: MediaHandler; textOptions: TCTextOptionsPtr): HandlerError;
  543.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  544.     INLINE $2F3C, $0004, $010A, $7000, $A82A;
  545.     {$ENDC}
  546. FUNCTION TCGetDisplayOptions(mh: MediaHandler; textOptions: TCTextOptionsPtr): HandlerError;
  547.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  548.     INLINE $2F3C, $0004, $010B, $7000, $A82A;
  549.     {$ENDC}
  550.  
  551.  
  552.  
  553. TYPE
  554.     MovieImportComponent                = ComponentInstance;
  555.     MovieExportComponent                = ComponentInstance;
  556.  
  557. CONST
  558.     MovieImportType                = 'eat ';
  559.     MovieExportType                = 'spit';
  560.  
  561.     canMovieImportHandles        = $01;
  562.     canMovieImportFiles            = $02;
  563.     hasMovieImportUserInterface    = $04;
  564.     canMovieExportHandles        = $08;
  565.     canMovieExportFiles            = $10;
  566.     hasMovieExportUserInterface    = $20;
  567.     dontAutoFileMovieImport        = $40;
  568.     canMovieExportAuxDataHandle    = $80;
  569.     canMovieImportValidateHandles = $0100;
  570.     canMovieImportValidateFile    = $0200;
  571.     dontRegisterWithEasyOpen    = $0400;
  572.     canMovieImportInPlace        = $0800;
  573.     movieImportSubTypeIsFileExtension = $1000;
  574.     canMovieImportPartial        = $2000;
  575.     hasMovieImportMIMEList        = $4000;
  576.     canMovieExportFromProcedures = $8000;
  577.     canMovieExportValidateMovie    = $00010000;
  578.     movieExportNeedsResourceFork = $00020000;
  579.     canMovieImportDataReferences = $00040000;
  580.     reservedForUseByGraphicsImporters = $00800000;
  581.  
  582.     movieImportCreateTrack        = 1;
  583.     movieImportInParallel        = 2;
  584.     movieImportMustUseTrack        = 4;
  585.  
  586.     movieImportResultUsedMultipleTracks = 8;
  587.  
  588.     kMovieExportTextOnly        = 0;
  589.     kMovieExportAbsoluteTime    = 1;
  590.     kMovieExportRelativeTime    = 2;
  591.  
  592.     kMIDIImportSilenceBefore    = $01;
  593.     kMIDIImportSilenceAfter        = $02;
  594.     kMIDIImport20Playable        = $04;
  595.     kMIDIImportWantLyrics        = $08;
  596.  
  597.     kMimeInfoMimeTypeTag        = 'mime';
  598.     kMimeInfoFileExtensionTag    = 'ext ';
  599.     kMimeInfoDescriptionTag        = 'desc';
  600.  
  601.     kQTFileTypeAIFF                = 'AIFF';
  602.     kQTFileTypeAIFC                = 'AIFC';
  603.     kQTFileTypeDVC                = 'dvc!';
  604.     kQTFileTypeMIDI                = 'Midi';
  605.     kQTFileTypePicture            = 'PICT';
  606.     kQTFileTypeMovie            = 'MooV';
  607.     kQTFileTypeText                = 'TEXT';
  608.     kQTFileTypeWave                = 'WAVE';
  609.     kQTFileTypeSystemSevenSound    = 'sfil';
  610.     kQTFileTypeMuLaw            = 'ULAW';
  611.     kQTFileTypeAVI                = 'VfW ';
  612.     kQTFileTypeSoundDesignerII    = 'Sd2f';
  613.     kQTFileTypeAudioCDTrack        = 'trak';
  614.     kQTFileTypePICS                = 'PICS';
  615.     kQTFileTypeGIF                = 'GIFf';
  616.     kQTFileTypePhotoShop        = '8BPS';
  617.     kQTFileTypeSGIImage            = '.SGI';
  618.     kQTFileTypeBMP                = 'BMPf';
  619.     kQTFileTypeJPEG                = 'JPEG';
  620.     kQTFileTypeJFIF                = 'JPEG';
  621.     kQTFileTypeMacPaint            = 'PNTG';
  622.     kQTFileTypeTargaImage        = 'TPIC';
  623.     kQTFileTypeQuickDrawGXPicture = 'qdgx';
  624.     kQTFileTypeQuickTimeImage    = 'qtif';
  625.     kQTFileType3DMF                = '3DMF';
  626.  
  627. {  QTAtomTypes for atoms in import/export settings containers }
  628.     kQTSettingsEffect            = 'effe';                        {  Parent atom whose contents are atoms of an effects description }
  629.     kQTSettingsMIDI                = 'MIDI';                        {  MIDI import related container }
  630.     kQTSettingsMIDISettingFlags    = 'sttg';                        {  MIDI import settings    (UInt32) }
  631.     kQTSettingsText                = 'text';                        {  Text related container }
  632.     kQTSettingsTextDescription    = 'desc';                        {  Text settings (TextDescription record) }
  633.     kQTSettingsTextSize            = 'size';                        {  Width/height to create (FixedPoint) }
  634.     kQTSettingsTextSettingFlags    = 'sttg';                        {  Text export settings (UInt32) }
  635.     kQTSettingsTextTimeFraction    = 'timf';                        {  Movie time fraction for export (UInt32) }
  636.     kQTSettingsTime                = 'time';                        {  Time related container }
  637.     kQTSettingsAudioCDTrack        = 'trak';                        {  Audio CD track related container }
  638.     kQTSettingsAudioCDTrackRateShift = 'rshf';                    {  Rate shift to be performed (SInt16) }
  639.  
  640.  
  641.  
  642.  
  643.  
  644. TYPE
  645.     MovieExportGetDataParamsPtr = ^MovieExportGetDataParams;
  646.     MovieExportGetDataParams = RECORD
  647.         recordSize:                LONGINT;
  648.         trackID:                LONGINT;
  649.         sourceTimeScale:        TimeScale;
  650.         requestedTime:            TimeValue;
  651.         actualTime:                TimeValue;
  652.         dataPtr:                Ptr;
  653.         dataSize:                LONGINT;
  654.         desc:                    SampleDescriptionHandle;
  655.         descType:                OSType;
  656.         descSeed:                LONGINT;
  657.         requestedSampleCount:    LONGINT;
  658.         actualSampleCount:        LONGINT;
  659.         durationPerSample:        TimeValue;
  660.         sampleFlags:            LONGINT;
  661.     END;
  662.  
  663. {$IFC TYPED_FUNCTION_POINTERS}
  664.     MovieExportGetDataProcPtr = FUNCTION(refCon: UNIV Ptr; VAR params: MovieExportGetDataParams): OSErr;
  665. {$ELSEC}
  666.     MovieExportGetDataProcPtr = ProcPtr;
  667. {$ENDC}
  668.  
  669. {$IFC TYPED_FUNCTION_POINTERS}
  670.     MovieExportGetPropertyProcPtr = FUNCTION(refcon: UNIV Ptr; trackID: LONGINT; propertyType: OSType; propertyValue: UNIV Ptr): OSErr;
  671. {$ELSEC}
  672.     MovieExportGetPropertyProcPtr = ProcPtr;
  673. {$ENDC}
  674.  
  675.     MovieExportGetDataUPP = UniversalProcPtr;
  676.     MovieExportGetPropertyUPP = UniversalProcPtr;
  677.  
  678. CONST
  679.     uppSCModalFilterProcInfo = $00003FD0;
  680.     uppSCModalHookProcInfo = $00003EE0;
  681.     uppTweenerDataProcInfo = $003FFFF0;
  682.     uppMovieExportGetDataProcInfo = $000003E0;
  683.     uppMovieExportGetPropertyProcInfo = $00003FE0;
  684.  
  685. FUNCTION NewSCModalFilterProc(userRoutine: SCModalFilterProcPtr): SCModalFilterUPP;
  686.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  687.     INLINE $2E9F;
  688.     {$ENDC}
  689.  
  690. FUNCTION NewSCModalHookProc(userRoutine: SCModalHookProcPtr): SCModalHookUPP;
  691.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  692.     INLINE $2E9F;
  693.     {$ENDC}
  694.  
  695. FUNCTION NewTweenerDataProc(userRoutine: TweenerDataProcPtr): TweenerDataUPP;
  696.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  697.     INLINE $2E9F;
  698.     {$ENDC}
  699.  
  700. FUNCTION NewMovieExportGetDataProc(userRoutine: MovieExportGetDataProcPtr): MovieExportGetDataUPP;
  701.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  702.     INLINE $2E9F;
  703.     {$ENDC}
  704.  
  705. FUNCTION NewMovieExportGetPropertyProc(userRoutine: MovieExportGetPropertyProcPtr): MovieExportGetPropertyUPP;
  706.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  707.     INLINE $2E9F;
  708.     {$ENDC}
  709.  
  710. FUNCTION CallSCModalFilterProc(theDialog: DialogPtr; VAR theEvent: EventRecord; VAR itemHit: INTEGER; refcon: LONGINT; userRoutine: SCModalFilterUPP): BOOLEAN;
  711.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  712.     INLINE $205F, $4E90;
  713.     {$ENDC}
  714.  
  715. FUNCTION CallSCModalHookProc(theDialog: DialogPtr; itemHit: INTEGER; params: UNIV Ptr; refcon: LONGINT; userRoutine: SCModalHookUPP): INTEGER;
  716.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  717.     INLINE $205F, $4E90;
  718.     {$ENDC}
  719.  
  720. FUNCTION CallTweenerDataProc(VAR tr: TweenRecord; tweenData: UNIV Ptr; tweenDataSize: LONGINT; dataDescriptionSeed: LONGINT; dataDescription: Handle; asyncCompletionProc: ICMCompletionProcRecordPtr; transferProc: UniversalProcPtr; refCon: UNIV Ptr; userRoutine: TweenerDataUPP): ComponentResult;
  721.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  722.     INLINE $205F, $4E90;
  723.     {$ENDC}
  724.  
  725. FUNCTION CallMovieExportGetDataProc(refCon: UNIV Ptr; VAR params: MovieExportGetDataParams; userRoutine: MovieExportGetDataUPP): OSErr;
  726.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  727.     INLINE $205F, $4E90;
  728.     {$ENDC}
  729.  
  730. FUNCTION CallMovieExportGetPropertyProc(refcon: UNIV Ptr; trackID: LONGINT; propertyType: OSType; propertyValue: UNIV Ptr; userRoutine: MovieExportGetPropertyUPP): OSErr;
  731.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  732.     INLINE $205F, $4E90;
  733.     {$ENDC}
  734. FUNCTION MovieImportHandle(ci: MovieImportComponent; dataH: Handle; theMovie: Movie; targetTrack: Track; VAR usedTrack: Track; atTime: TimeValue; VAR addedDuration: TimeValue; inFlags: LONGINT; VAR outFlags: LONGINT): ComponentResult;
  735.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  736.     INLINE $2F3C, $0020, $0001, $7000, $A82A;
  737.     {$ENDC}
  738. FUNCTION MovieImportFile(ci: MovieImportComponent; {CONST}VAR theFile: FSSpec; theMovie: Movie; targetTrack: Track; VAR usedTrack: Track; atTime: TimeValue; VAR addedDuration: TimeValue; inFlags: LONGINT; VAR outFlags: LONGINT): ComponentResult;
  739.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  740.     INLINE $2F3C, $0020, $0002, $7000, $A82A;
  741.     {$ENDC}
  742. FUNCTION MovieImportSetSampleDuration(ci: MovieImportComponent; duration: TimeValue; scale: TimeScale): ComponentResult;
  743.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  744.     INLINE $2F3C, $0008, $0003, $7000, $A82A;
  745.     {$ENDC}
  746. FUNCTION MovieImportSetSampleDescription(ci: MovieImportComponent; desc: SampleDescriptionHandle; mediaType: OSType): ComponentResult;
  747.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  748.     INLINE $2F3C, $0008, $0004, $7000, $A82A;
  749.     {$ENDC}
  750. FUNCTION MovieImportSetMediaFile(ci: MovieImportComponent; alias: AliasHandle): ComponentResult;
  751.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  752.     INLINE $2F3C, $0004, $0005, $7000, $A82A;
  753.     {$ENDC}
  754. FUNCTION MovieImportSetDimensions(ci: MovieImportComponent; width: Fixed; height: Fixed): ComponentResult;
  755.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  756.     INLINE $2F3C, $0008, $0006, $7000, $A82A;
  757.     {$ENDC}
  758. FUNCTION MovieImportSetChunkSize(ci: MovieImportComponent; chunkSize: LONGINT): ComponentResult;
  759.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  760.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  761.     {$ENDC}
  762. FUNCTION MovieImportSetProgressProc(ci: MovieImportComponent; proc: MovieProgressUPP; refcon: LONGINT): ComponentResult;
  763.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  764.     INLINE $2F3C, $0008, $0008, $7000, $A82A;
  765.     {$ENDC}
  766. FUNCTION MovieImportSetAuxiliaryData(ci: MovieImportComponent; data: Handle; handleType: OSType): ComponentResult;
  767.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  768.     INLINE $2F3C, $0008, $0009, $7000, $A82A;
  769.     {$ENDC}
  770. FUNCTION MovieImportSetFromScrap(ci: MovieImportComponent; fromScrap: BOOLEAN): ComponentResult;
  771.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  772.     INLINE $2F3C, $0002, $000A, $7000, $A82A;
  773.     {$ENDC}
  774. FUNCTION MovieImportDoUserDialog(ci: MovieImportComponent; {CONST}VAR theFile: FSSpec; theData: Handle; VAR canceled: BOOLEAN): ComponentResult;
  775.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  776.     INLINE $2F3C, $000C, $000B, $7000, $A82A;
  777.     {$ENDC}
  778. FUNCTION MovieImportSetDuration(ci: MovieImportComponent; duration: TimeValue): ComponentResult;
  779.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  780.     INLINE $2F3C, $0004, $000C, $7000, $A82A;
  781.     {$ENDC}
  782. FUNCTION MovieImportGetAuxiliaryDataType(ci: MovieImportComponent; VAR auxType: OSType): ComponentResult;
  783.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  784.     INLINE $2F3C, $0004, $000D, $7000, $A82A;
  785.     {$ENDC}
  786. FUNCTION MovieImportValidate(ci: MovieImportComponent; {CONST}VAR theFile: FSSpec; theData: Handle; VAR valid: BOOLEAN): ComponentResult;
  787.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  788.     INLINE $2F3C, $000C, $000E, $7000, $A82A;
  789.     {$ENDC}
  790. FUNCTION MovieImportGetFileType(ci: MovieImportComponent; VAR fileType: OSType): ComponentResult;
  791.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  792.     INLINE $2F3C, $0004, $000F, $7000, $A82A;
  793.     {$ENDC}
  794. FUNCTION MovieImportDataRef(ci: MovieImportComponent; dataRef: Handle; dataRefType: OSType; theMovie: Movie; targetTrack: Track; VAR usedTrack: Track; atTime: TimeValue; VAR addedDuration: TimeValue; inFlags: LONGINT; VAR outFlags: LONGINT): ComponentResult;
  795.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  796.     INLINE $2F3C, $0024, $0010, $7000, $A82A;
  797.     {$ENDC}
  798. FUNCTION MovieImportGetSampleDescription(ci: MovieImportComponent; VAR desc: SampleDescriptionHandle; VAR mediaType: OSType): ComponentResult;
  799.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  800.     INLINE $2F3C, $0008, $0011, $7000, $A82A;
  801.     {$ENDC}
  802. FUNCTION MovieImportGetMIMETypeList(ci: MovieImportComponent; VAR mimeInfo: QTAtomContainer): ComponentResult;
  803.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  804.     INLINE $2F3C, $0004, $0012, $7000, $A82A;
  805.     {$ENDC}
  806. FUNCTION MovieImportSetOffsetAndLimit(ci: MovieImportComponent; offset: UInt32; limit: UInt32): ComponentResult;
  807.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  808.     INLINE $2F3C, $0008, $0013, $7000, $A82A;
  809.     {$ENDC}
  810. FUNCTION MovieImportGetSettingsAsAtomContainer(ci: MovieImportComponent; VAR settings: QTAtomContainer): ComponentResult;
  811.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  812.     INLINE $2F3C, $0004, $0014, $7000, $A82A;
  813.     {$ENDC}
  814. FUNCTION MovieImportSetSettingsFromAtomContainer(ci: MovieImportComponent; settings: QTAtomContainer): ComponentResult;
  815.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  816.     INLINE $2F3C, $0004, $0015, $7000, $A82A;
  817.     {$ENDC}
  818. FUNCTION MovieExportToHandle(ci: MovieExportComponent; dataH: Handle; theMovie: Movie; onlyThisTrack: Track; startTime: TimeValue; duration: TimeValue): ComponentResult;
  819.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  820.     INLINE $2F3C, $0014, $0080, $7000, $A82A;
  821.     {$ENDC}
  822. FUNCTION MovieExportToFile(ci: MovieExportComponent; {CONST}VAR theFile: FSSpec; theMovie: Movie; onlyThisTrack: Track; startTime: TimeValue; duration: TimeValue): ComponentResult;
  823.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  824.     INLINE $2F3C, $0014, $0081, $7000, $A82A;
  825.     {$ENDC}
  826. FUNCTION MovieExportGetAuxiliaryData(ci: MovieExportComponent; dataH: Handle; VAR handleType: OSType): ComponentResult;
  827.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  828.     INLINE $2F3C, $0008, $0083, $7000, $A82A;
  829.     {$ENDC}
  830. FUNCTION MovieExportSetProgressProc(ci: MovieExportComponent; proc: MovieProgressUPP; refcon: LONGINT): ComponentResult;
  831.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  832.     INLINE $2F3C, $0008, $0084, $7000, $A82A;
  833.     {$ENDC}
  834. FUNCTION MovieExportSetSampleDescription(ci: MovieExportComponent; desc: SampleDescriptionHandle; mediaType: OSType): ComponentResult;
  835.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  836.     INLINE $2F3C, $0008, $0085, $7000, $A82A;
  837.     {$ENDC}
  838. FUNCTION MovieExportDoUserDialog(ci: MovieExportComponent; theMovie: Movie; onlyThisTrack: Track; startTime: TimeValue; duration: TimeValue; VAR canceled: BOOLEAN): ComponentResult;
  839.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  840.     INLINE $2F3C, $0014, $0086, $7000, $A82A;
  841.     {$ENDC}
  842. FUNCTION MovieExportGetCreatorType(ci: MovieExportComponent; VAR creator: OSType): ComponentResult;
  843.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  844.     INLINE $2F3C, $0004, $0087, $7000, $A82A;
  845.     {$ENDC}
  846. FUNCTION MovieExportToDataRef(ci: MovieExportComponent; dataRef: Handle; dataRefType: OSType; theMovie: Movie; onlyThisTrack: Track; startTime: TimeValue; duration: TimeValue): ComponentResult;
  847.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  848.     INLINE $2F3C, $0018, $0088, $7000, $A82A;
  849.     {$ENDC}
  850. FUNCTION MovieExportFromProceduresToDataRef(ci: MovieExportComponent; dataRef: Handle; dataRefType: OSType): ComponentResult;
  851.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  852.     INLINE $2F3C, $0008, $0089, $7000, $A82A;
  853.     {$ENDC}
  854. FUNCTION MovieExportAddDataSource(ci: MovieExportComponent; trackType: OSType; scale: TimeScale; VAR trackID: LONGINT; getPropertyProc: MovieExportGetPropertyUPP; getDataProc: MovieExportGetDataUPP; refCon: UNIV Ptr): ComponentResult;
  855.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  856.     INLINE $2F3C, $0018, $008A, $7000, $A82A;
  857.     {$ENDC}
  858. FUNCTION MovieExportValidate(ci: MovieExportComponent; theMovie: Movie; onlyThisTrack: Track; VAR valid: BOOLEAN): ComponentResult;
  859.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  860.     INLINE $2F3C, $000C, $008B, $7000, $A82A;
  861.     {$ENDC}
  862. FUNCTION MovieExportGetSettingsAsAtomContainer(ci: MovieExportComponent; VAR settings: QTAtomContainer): ComponentResult;
  863.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  864.     INLINE $2F3C, $0004, $008C, $7000, $A82A;
  865.     {$ENDC}
  866. FUNCTION MovieExportSetSettingsFromAtomContainer(ci: MovieExportComponent; settings: QTAtomContainer): ComponentResult;
  867.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  868.     INLINE $2F3C, $0004, $008D, $7000, $A82A;
  869.     {$ENDC}
  870. FUNCTION MovieExportGetFileNameExtension(ci: MovieExportComponent; VAR extension: OSType): ComponentResult;
  871.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  872.     INLINE $2F3C, $0004, $008E, $7000, $A82A;
  873.     {$ENDC}
  874. FUNCTION MovieExportGetShortFileTypeString(ci: MovieExportComponent; VAR typeString: Str255): ComponentResult;
  875.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  876.     INLINE $2F3C, $0004, $008F, $7000, $A82A;
  877.     {$ENDC}
  878. {  Text Export Display Info data structure }
  879.  
  880. TYPE
  881.     TextDisplayDataPtr = ^TextDisplayData;
  882.     TextDisplayData = RECORD
  883.         displayFlags:            LONGINT;
  884.         textJustification:        LONGINT;
  885.         bgColor:                RGBColor;
  886.         textBox:                Rect;
  887.         beginHilite:            INTEGER;
  888.         endHilite:                INTEGER;
  889.         hiliteColor:            RGBColor;
  890.         doHiliteColor:            BOOLEAN;
  891.         filler:                    SInt8;
  892.         scrollDelayDur:            TimeValue;
  893.         dropShadowOffset:        Point;
  894.         dropShadowTransparency:    INTEGER;
  895.     END;
  896.  
  897.     TextExportComponent                    = ComponentInstance;
  898.     GraphicImageMovieImportComponent    = ComponentInstance;
  899. FUNCTION TextExportGetDisplayData(ci: TextExportComponent; VAR textDisplay: TextDisplayData): ComponentResult;
  900.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  901.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  902.     {$ENDC}
  903. FUNCTION TextExportGetTimeFraction(ci: TextExportComponent; VAR movieTimeFraction: LONGINT): ComponentResult;
  904.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  905.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  906.     {$ENDC}
  907. FUNCTION TextExportSetTimeFraction(ci: TextExportComponent; movieTimeFraction: LONGINT): ComponentResult;
  908.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  909.     INLINE $2F3C, $0004, $0102, $7000, $A82A;
  910.     {$ENDC}
  911. FUNCTION TextExportGetSettings(ci: TextExportComponent; VAR setting: LONGINT): ComponentResult;
  912.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  913.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  914.     {$ENDC}
  915. FUNCTION TextExportSetSettings(ci: TextExportComponent; setting: LONGINT): ComponentResult;
  916.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  917.     INLINE $2F3C, $0004, $0104, $7000, $A82A;
  918.     {$ENDC}
  919. FUNCTION MIDIImportGetSettings(ci: TextExportComponent; VAR setting: LONGINT): ComponentResult;
  920.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  921.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  922.     {$ENDC}
  923. FUNCTION MIDIImportSetSettings(ci: TextExportComponent; setting: LONGINT): ComponentResult;
  924.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  925.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  926.     {$ENDC}
  927. FUNCTION MovieExportNewGetDataAndPropertiesProcs(ci: MovieExportComponent; trackType: OSType; VAR scale: TimeScale; theMovie: Movie; theTrack: Track; startTime: TimeValue; duration: TimeValue; VAR getPropertyProc: MovieExportGetPropertyUPP; VAR getDataProc: MovieExportGetDataUPP; VAR refCon: UNIV Ptr): ComponentResult;
  928.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  929.     INLINE $2F3C, $0024, $0100, $7000, $A82A;
  930.     {$ENDC}
  931. FUNCTION MovieExportDisposeGetDataAndPropertiesProcs(ci: MovieExportComponent; getPropertyProc: MovieExportGetPropertyUPP; getDataProc: MovieExportGetDataUPP; refCon: UNIV Ptr): ComponentResult;
  932.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  933.     INLINE $2F3C, $000C, $0101, $7000, $A82A;
  934.     {$ENDC}
  935.  
  936. CONST
  937.     movieExportWidth            = 'wdth';                        {  pointer to Fixed }
  938.     movieExportHeight            = 'hegt';                        {  pointer to Fixed }
  939.     movieExportDuration            = 'dura';                        {  pointer to TimeRecord }
  940.     movieExportVideoFilter        = 'iflt';                        {  pointer to QTAtomContainer }
  941.  
  942. FUNCTION GraphicsImageImportSetSequenceEnabled(ci: GraphicImageMovieImportComponent; enable: BOOLEAN): ComponentResult;
  943.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  944.     INLINE $2F3C, $0002, $0100, $7000, $A82A;
  945.     {$ENDC}
  946. FUNCTION GraphicsImageImportGetSequenceEnabled(ci: GraphicImageMovieImportComponent; VAR enable: BOOLEAN): ComponentResult;
  947.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  948.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  949.     {$ENDC}
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957. {**************
  958.  
  959.     File Preview Components
  960.  
  961. **************}
  962.  
  963. TYPE
  964.     pnotComponent                        = ComponentInstance;
  965.  
  966. CONST
  967.     pnotComponentWantsEvents    = 1;
  968.     pnotComponentNeedsNoCache    = 2;
  969.  
  970.     ShowFilePreviewComponentType = 'pnot';
  971.     CreateFilePreviewComponentType = 'pmak';
  972.  
  973. FUNCTION PreviewShowData(p: pnotComponent; dataType: OSType; data: Handle; {CONST}VAR inHere: Rect): ComponentResult;
  974.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  975.     INLINE $2F3C, $000C, $0001, $7000, $A82A;
  976.     {$ENDC}
  977. FUNCTION PreviewMakePreview(p: pnotComponent; VAR previewType: OSType; VAR previewResult: Handle; {CONST}VAR sourceFile: FSSpec; progress: ICMProgressProcRecordPtr): ComponentResult;
  978.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  979.     INLINE $2F3C, $0010, $0002, $7000, $A82A;
  980.     {$ENDC}
  981. FUNCTION PreviewMakePreviewReference(p: pnotComponent; VAR previewType: OSType; VAR resID: INTEGER; {CONST}VAR sourceFile: FSSpec): ComponentResult;
  982.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  983.     INLINE $2F3C, $000C, $0003, $7000, $A82A;
  984.     {$ENDC}
  985. FUNCTION PreviewEvent(p: pnotComponent; VAR e: EventRecord; VAR handledEvent: BOOLEAN): ComponentResult;
  986.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  987.     INLINE $2F3C, $0008, $0004, $7000, $A82A;
  988.     {$ENDC}
  989.  
  990.  
  991.  
  992. TYPE
  993.     DataCompressorComponent                = ComponentInstance;
  994.     DataDecompressorComponent            = ComponentInstance;
  995.     DataCodecComponent                    = ComponentInstance;
  996.  
  997. CONST
  998.     DataCompressorComponentType    = 'dcom';
  999.     DataDecompressorComponentType = 'ddec';
  1000.     AppleDataCompressorSubType    = 'adec';
  1001.     zlibDataCompressorSubType    = 'zlib';
  1002.  
  1003.  
  1004. {* These are DataCodec procedures *}
  1005. FUNCTION DataCodecDecompress(dc: DataCodecComponent; srcData: UNIV Ptr; srcSize: UInt32; dstData: UNIV Ptr; dstBufferSize: UInt32): ComponentResult;
  1006.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1007.     INLINE $2F3C, $0010, $0001, $7000, $A82A;
  1008.     {$ENDC}
  1009. FUNCTION DataCodecGetCompressBufferSize(dc: DataCodecComponent; srcSize: UInt32; VAR dstSize: UInt32): ComponentResult;
  1010.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1011.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  1012.     {$ENDC}
  1013. FUNCTION DataCodecCompress(dc: DataCodecComponent; srcData: UNIV Ptr; srcSize: UInt32; dstData: UNIV Ptr; dstBufferSize: UInt32; VAR actualDstSize: UInt32; VAR decompressSlop: UInt32): ComponentResult;
  1014.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1015.     INLINE $2F3C, $0018, $0003, $7000, $A82A;
  1016.     {$ENDC}
  1017. FUNCTION DataCodecBeginInterruptSafe(dc: DataCodecComponent; maxSrcSize: UInt32): ComponentResult;
  1018.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1019.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  1020.     {$ENDC}
  1021. FUNCTION DataCodecEndInterruptSafe(dc: DataCodecComponent): ComponentResult;
  1022.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1023.     INLINE $2F3C, $0000, $0005, $7000, $A82A;
  1024.     {$ENDC}
  1025. FUNCTION DataCodecDecompressPartial(dc: DataCodecComponent; VAR next_in: UNIV Ptr; VAR avail_in: UInt32; VAR total_in: UInt32; VAR next_out: UNIV Ptr; VAR avail_out: UInt32; VAR total_out: UInt32; VAR didFinish: BOOLEAN): ComponentResult;
  1026.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1027.     INLINE $2F3C, $001C, $0006, $7000, $A82A;
  1028.     {$ENDC}
  1029. FUNCTION DataCodecCompressPartial(dc: DataCodecComponent; VAR next_in: UNIV Ptr; VAR avail_in: UInt32; VAR total_in: UInt32; VAR next_out: UNIV Ptr; VAR avail_out: UInt32; VAR total_out: UInt32; tryToFinish: BOOLEAN; VAR didFinish: BOOLEAN): ComponentResult;
  1030.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1031.     INLINE $2F3C, $001E, $0007, $7000, $A82A;
  1032.     {$ENDC}
  1033.  
  1034.  
  1035.  
  1036.  
  1037. TYPE
  1038. {$IFC TYPED_FUNCTION_POINTERS}
  1039.     DataHCompletionProcPtr = PROCEDURE(request: Ptr; refcon: LONGINT; err: OSErr);
  1040. {$ELSEC}
  1041.     DataHCompletionProcPtr = ProcPtr;
  1042. {$ENDC}
  1043.  
  1044.     DataHCompletionUPP = UniversalProcPtr;
  1045.  
  1046.  
  1047. CONST
  1048.     kDataHCanRead                = $00000001;
  1049.     kDataHSpecialRead            = $00000002;
  1050.     kDataHSpecialReadFile        = $00000004;
  1051.     kDataHCanWrite                = $00000008;
  1052.     kDataHSpecialWrite            = $10;
  1053.     kDataHSpecialWriteFile        = $20;
  1054.     kDataHCanStreamingWrite        = $40;
  1055.     kDataHMustCheckDataRef        = $80;
  1056.  
  1057.  
  1058. TYPE
  1059.     DataHVolumeListRecordPtr = ^DataHVolumeListRecord;
  1060.     DataHVolumeListRecord = RECORD
  1061.         vRefNum:                INTEGER;
  1062.         flags:                    LONGINT;
  1063.     END;
  1064.  
  1065.     DataHVolumeListPtr                    = ^DataHVolumeListRecord;
  1066.     DataHVolumeList                        = ^DataHVolumeListPtr;
  1067.  
  1068. CONST
  1069.     kDataHExtendedSchedule        = 'xtnd';
  1070.  
  1071.  
  1072. TYPE
  1073.     DataHScheduleRecordPtr = ^DataHScheduleRecord;
  1074.     DataHScheduleRecord = RECORD
  1075.         timeNeededBy:            TimeRecord;
  1076.         extendedID:                LONGINT;                                {  always is kDataHExtendedSchedule }
  1077.         extendedVers:            LONGINT;                                {  always set to 0 }
  1078.         priority:                Fixed;                                    {  100.0 or more means must have. lower numbers… }
  1079.     END;
  1080.  
  1081.     DataHSchedulePtr                    = ^DataHScheduleRecord;
  1082.  
  1083.  
  1084. FUNCTION DataHGetData(dh: DataHandler; h: Handle; hOffset: LONGINT; offset: LONGINT; size: LONGINT): ComponentResult;
  1085.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1086.     INLINE $2F3C, $0010, $0002, $7000, $A82A;
  1087.     {$ENDC}
  1088. FUNCTION DataHPutData(dh: DataHandler; h: Handle; hOffset: LONGINT; VAR offset: LONGINT; size: LONGINT): ComponentResult;
  1089.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1090.     INLINE $2F3C, $0010, $0003, $7000, $A82A;
  1091.     {$ENDC}
  1092. FUNCTION DataHFlushData(dh: DataHandler): ComponentResult;
  1093.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1094.     INLINE $2F3C, $0000, $0004, $7000, $A82A;
  1095.     {$ENDC}
  1096. FUNCTION DataHOpenForWrite(dh: DataHandler): ComponentResult;
  1097.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1098.     INLINE $2F3C, $0000, $0005, $7000, $A82A;
  1099.     {$ENDC}
  1100. FUNCTION DataHCloseForWrite(dh: DataHandler): ComponentResult;
  1101.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1102.     INLINE $2F3C, $0000, $0006, $7000, $A82A;
  1103.     {$ENDC}
  1104.  
  1105. FUNCTION DataHOpenForRead(dh: DataHandler): ComponentResult;
  1106.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1107.     INLINE $2F3C, $0000, $0008, $7000, $A82A;
  1108.     {$ENDC}
  1109. FUNCTION DataHCloseForRead(dh: DataHandler): ComponentResult;
  1110.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1111.     INLINE $2F3C, $0000, $0009, $7000, $A82A;
  1112.     {$ENDC}
  1113. FUNCTION DataHSetDataRef(dh: DataHandler; dataRef: Handle): ComponentResult;
  1114.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1115.     INLINE $2F3C, $0004, $000A, $7000, $A82A;
  1116.     {$ENDC}
  1117. FUNCTION DataHGetDataRef(dh: DataHandler; VAR dataRef: Handle): ComponentResult;
  1118.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1119.     INLINE $2F3C, $0004, $000B, $7000, $A82A;
  1120.     {$ENDC}
  1121. FUNCTION DataHCompareDataRef(dh: DataHandler; dataRef: Handle; VAR equal: BOOLEAN): ComponentResult;
  1122.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1123.     INLINE $2F3C, $0008, $000C, $7000, $A82A;
  1124.     {$ENDC}
  1125. FUNCTION DataHTask(dh: DataHandler): ComponentResult;
  1126.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1127.     INLINE $2F3C, $0000, $000D, $7000, $A82A;
  1128.     {$ENDC}
  1129. FUNCTION DataHScheduleData(dh: DataHandler; PlaceToPutDataPtr: Ptr; FileOffset: LONGINT; DataSize: LONGINT; RefCon: LONGINT; scheduleRec: DataHSchedulePtr; CompletionRtn: DataHCompletionUPP): ComponentResult;
  1130.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1131.     INLINE $2F3C, $0018, $000E, $7000, $A82A;
  1132.     {$ENDC}
  1133. FUNCTION DataHFinishData(dh: DataHandler; PlaceToPutDataPtr: Ptr; Cancel: BOOLEAN): ComponentResult;
  1134.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1135.     INLINE $2F3C, $0006, $000F, $7000, $A82A;
  1136.     {$ENDC}
  1137. FUNCTION DataHFlushCache(dh: DataHandler): ComponentResult;
  1138.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1139.     INLINE $2F3C, $0000, $0010, $7000, $A82A;
  1140.     {$ENDC}
  1141. FUNCTION DataHResolveDataRef(dh: DataHandler; theDataRef: Handle; VAR wasChanged: BOOLEAN; userInterfaceAllowed: BOOLEAN): ComponentResult;
  1142.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1143.     INLINE $2F3C, $000A, $0011, $7000, $A82A;
  1144.     {$ENDC}
  1145. FUNCTION DataHGetFileSize(dh: DataHandler; VAR fileSize: LONGINT): ComponentResult;
  1146.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1147.     INLINE $2F3C, $0004, $0012, $7000, $A82A;
  1148.     {$ENDC}
  1149. FUNCTION DataHCanUseDataRef(dh: DataHandler; dataRef: Handle; VAR useFlags: LONGINT): ComponentResult;
  1150.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1151.     INLINE $2F3C, $0008, $0013, $7000, $A82A;
  1152.     {$ENDC}
  1153. FUNCTION DataHGetVolumeList(dh: DataHandler; VAR volumeList: DataHVolumeList): ComponentResult;
  1154.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1155.     INLINE $2F3C, $0004, $0014, $7000, $A82A;
  1156.     {$ENDC}
  1157. FUNCTION DataHWrite(dh: DataHandler; data: Ptr; offset: LONGINT; size: LONGINT; completion: DataHCompletionUPP; refCon: LONGINT): ComponentResult;
  1158.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1159.     INLINE $2F3C, $0014, $0015, $7000, $A82A;
  1160.     {$ENDC}
  1161. FUNCTION DataHPreextend(dh: DataHandler; maxToAdd: UInt32; VAR spaceAdded: UInt32): ComponentResult;
  1162.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1163.     INLINE $2F3C, $0008, $0016, $7000, $A82A;
  1164.     {$ENDC}
  1165. FUNCTION DataHSetFileSize(dh: DataHandler; fileSize: LONGINT): ComponentResult;
  1166.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1167.     INLINE $2F3C, $0004, $0017, $7000, $A82A;
  1168.     {$ENDC}
  1169. FUNCTION DataHGetFreeSpace(dh: DataHandler; VAR freeSize: UInt32): ComponentResult;
  1170.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1171.     INLINE $2F3C, $0004, $0018, $7000, $A82A;
  1172.     {$ENDC}
  1173. FUNCTION DataHCreateFile(dh: DataHandler; creator: OSType; deleteExisting: BOOLEAN): ComponentResult;
  1174.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1175.     INLINE $2F3C, $0006, $0019, $7000, $A82A;
  1176.     {$ENDC}
  1177. FUNCTION DataHGetPreferredBlockSize(dh: DataHandler; VAR blockSize: LONGINT): ComponentResult;
  1178.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1179.     INLINE $2F3C, $0004, $001A, $7000, $A82A;
  1180.     {$ENDC}
  1181. FUNCTION DataHGetDeviceIndex(dh: DataHandler; VAR deviceIndex: LONGINT): ComponentResult;
  1182.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1183.     INLINE $2F3C, $0004, $001B, $7000, $A82A;
  1184.     {$ENDC}
  1185. FUNCTION DataHIsStreamingDataHandler(dh: DataHandler; VAR yes: BOOLEAN): ComponentResult;
  1186.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1187.     INLINE $2F3C, $0004, $001C, $7000, $A82A;
  1188.     {$ENDC}
  1189. FUNCTION DataHGetDataInBuffer(dh: DataHandler; startOffset: LONGINT; VAR size: LONGINT): ComponentResult;
  1190.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1191.     INLINE $2F3C, $0008, $001D, $7000, $A82A;
  1192.     {$ENDC}
  1193. FUNCTION DataHGetScheduleAheadTime(dh: DataHandler; VAR millisecs: LONGINT): ComponentResult;
  1194.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1195.     INLINE $2F3C, $0004, $001E, $7000, $A82A;
  1196.     {$ENDC}
  1197. FUNCTION DataHSetCacheSizeLimit(dh: DataHandler; cacheSizeLimit: Size): ComponentResult;
  1198.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1199.     INLINE $2F3C, $0004, $001F, $7000, $A82A;
  1200.     {$ENDC}
  1201. FUNCTION DataHGetCacheSizeLimit(dh: DataHandler; VAR cacheSizeLimit: Size): ComponentResult;
  1202.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1203.     INLINE $2F3C, $0004, $0020, $7000, $A82A;
  1204.     {$ENDC}
  1205. FUNCTION DataHGetMovie(dh: DataHandler; VAR theMovie: Movie; VAR id: INTEGER): ComponentResult;
  1206.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1207.     INLINE $2F3C, $0008, $0021, $7000, $A82A;
  1208.     {$ENDC}
  1209. FUNCTION DataHAddMovie(dh: DataHandler; theMovie: Movie; VAR id: INTEGER): ComponentResult;
  1210.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1211.     INLINE $2F3C, $0008, $0022, $7000, $A82A;
  1212.     {$ENDC}
  1213. FUNCTION DataHUpdateMovie(dh: DataHandler; theMovie: Movie; id: INTEGER): ComponentResult;
  1214.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1215.     INLINE $2F3C, $0006, $0023, $7000, $A82A;
  1216.     {$ENDC}
  1217. FUNCTION DataHDoesBuffer(dh: DataHandler; VAR buffersReads: BOOLEAN; VAR buffersWrites: BOOLEAN): ComponentResult;
  1218.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1219.     INLINE $2F3C, $0008, $0024, $7000, $A82A;
  1220.     {$ENDC}
  1221. FUNCTION DataHGetFileName(dh: DataHandler; VAR str: Str255): ComponentResult;
  1222.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1223.     INLINE $2F3C, $0004, $0025, $7000, $A82A;
  1224.     {$ENDC}
  1225. FUNCTION DataHGetAvailableFileSize(dh: DataHandler; VAR fileSize: LONGINT): ComponentResult;
  1226.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1227.     INLINE $2F3C, $0004, $0026, $7000, $A82A;
  1228.     {$ENDC}
  1229. FUNCTION DataHGetMacOSFileType(dh: DataHandler; VAR fileType: OSType): ComponentResult;
  1230.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1231.     INLINE $2F3C, $0004, $0027, $7000, $A82A;
  1232.     {$ENDC}
  1233. FUNCTION DataHGetMIMEType(dh: DataHandler; VAR mimeType: Str255): ComponentResult;
  1234.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1235.     INLINE $2F3C, $0004, $0028, $7000, $A82A;
  1236.     {$ENDC}
  1237. FUNCTION DataHSetDataRefWithAnchor(dh: DataHandler; anchorDataRef: Handle; dataRef: Handle): ComponentResult;
  1238.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1239.     INLINE $2F3C, $0008, $0029, $7000, $A82A;
  1240.     {$ENDC}
  1241. FUNCTION DataHGetDataRefWithAnchor(dh: DataHandler; anchorDataRef: Handle; VAR dataRef: Handle): ComponentResult;
  1242.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1243.     INLINE $2F3C, $0008, $002A, $7000, $A82A;
  1244.     {$ENDC}
  1245. FUNCTION DataHSetMacOSFileType(dh: DataHandler; fileType: OSType): ComponentResult;
  1246.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1247.     INLINE $2F3C, $0004, $002B, $7000, $A82A;
  1248.     {$ENDC}
  1249.  
  1250. FUNCTION DataHPlaybackHints(dh: DataHandler; flags: LONGINT; minFileOffset: UInt32; maxFileOffset: UInt32; bytesPerSecond: LONGINT): ComponentResult;
  1251.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1252.     INLINE $2F3C, $0010, $0103, $7000, $A82A;
  1253.     {$ENDC}
  1254.  
  1255.  
  1256.  
  1257. { Standard type for video digitizers }
  1258.  
  1259. CONST
  1260.     videoDigitizerComponentType    = 'vdig';
  1261.     vdigInterfaceRev            = 2;
  1262.  
  1263. { Input Format Standards }
  1264.     ntscIn                        = 0;                            {  current input format  }
  1265.     currentIn                    = 0;                            {  ntsc input format  }
  1266.     palIn                        = 1;                            {  pal input format  }
  1267.     secamIn                        = 2;                            {  secam input format  }
  1268.     ntscReallyIn                = 3;                            {  ntsc input format  }
  1269.  
  1270. { Input Formats }
  1271.     compositeIn                    = 0;                            {  input is composite format  }
  1272.     sVideoIn                    = 1;                            {  input is sVideo format  }
  1273.     rgbComponentIn                = 2;                            {  input is rgb component format  }
  1274.     rgbComponentSyncIn            = 3;                            {  input is rgb component format (sync on green?) }
  1275.     yuvComponentIn                = 4;                            {  input is yuv component format  }
  1276.     yuvComponentSyncIn            = 5;                            {  input is yuv component format (sync on green?)  }
  1277.     tvTunerIn                    = 6;
  1278.     sdiIn                        = 7;
  1279.  
  1280.  
  1281. { Video Digitizer PlayThru States }
  1282.     vdPlayThruOff                = 0;
  1283.     vdPlayThruOn                = 1;
  1284.  
  1285. { Input Color Space Modes }
  1286.     vdDigitizerBW                = 0;                            {  black and white  }
  1287.     vdDigitizerRGB                = 1;                            {  rgb color  }
  1288.  
  1289. { Phase Lock Loop Modes }
  1290.     vdBroadcastMode                = 0;                            {  Broadcast / Laser Disk video mode  }
  1291.     vdVTRMode                    = 1;                            {  VCR / Magnetic media mode  }
  1292.  
  1293. { Field Select Options }
  1294.     vdUseAnyField                = 0;                            {  Digitizers choice on field use  }
  1295.     vdUseOddField                = 1;                            {  Use odd field for half size vert and smaller  }
  1296.     vdUseEvenField                = 2;                            {  Use even field for half size vert and smaller  }
  1297.  
  1298. { vdig types }
  1299.     vdTypeBasic                    = 0;                            {  basic, no clipping  }
  1300.     vdTypeAlpha                    = 1;                            {  supports clipping with alpha channel  }
  1301.     vdTypeMask                    = 2;                            {  supports clipping with mask plane  }
  1302.     vdTypeKey                    = 3;                            {  supports clipping with key color(s)  }
  1303.  
  1304.  
  1305.  
  1306. { Digitizer Input Capability/Current Flags    }
  1307.     digiInDoesNTSC                = $00000001;                    {  digitizer supports NTSC input format  }
  1308.     digiInDoesPAL                = $00000002;                    {  digitizer supports PAL input format  }
  1309.     digiInDoesSECAM                = $00000004;                    {  digitizer supports SECAM input format  }
  1310.     digiInDoesGenLock            = $00000080;                    {  digitizer does genlock  }
  1311.     digiInDoesComposite            = $00000100;                    {  digitizer supports composite input type  }
  1312.     digiInDoesSVideo            = $00000200;                    {  digitizer supports S-Video input type  }
  1313.     digiInDoesComponent            = $00000400;                    {  digitizer supports component = rgb, input type  }
  1314.     digiInVTR_Broadcast            = $00000800;                    {  digitizer can differentiate between the two  }
  1315.     digiInDoesColor                = $00001000;                    {  digitizer supports color  }
  1316.     digiInDoesBW                = $00002000;                    {  digitizer supports black & white  }
  1317.                                                                 {  Digitizer Input Current Flags = these are valid only during active operating conditions,     }
  1318.     digiInSignalLock            = $80000000;                    {  digitizer detects input signal is locked, this bit = horiz lock || vertical lock  }
  1319.  
  1320.  
  1321. { Digitizer Output Capability/Current Flags }
  1322.     digiOutDoes1                = $00000001;                    {  digitizer supports 1 bit pixels  }
  1323.     digiOutDoes2                = $00000002;                    {  digitizer supports 2 bit pixels  }
  1324.     digiOutDoes4                = $00000004;                    {  digitizer supports 4 bit pixels  }
  1325.     digiOutDoes8                = $00000008;                    {  digitizer supports 8 bit pixels  }
  1326.     digiOutDoes16                = $00000010;                    {  digitizer supports 16 bit pixels  }
  1327.     digiOutDoes32                = $00000020;                    {  digitizer supports 32 bit pixels  }
  1328.     digiOutDoesDither            = $00000040;                    {  digitizer dithers in indexed modes  }
  1329.     digiOutDoesStretch            = $00000080;                    {  digitizer can arbitrarily stretch  }
  1330.     digiOutDoesShrink            = $00000100;                    {  digitizer can arbitrarily shrink  }
  1331.     digiOutDoesMask                = $00000200;                    {  digitizer can mask to clipping regions  }
  1332.     digiOutDoesDouble            = $00000800;                    {  digitizer can stretch to exactly double size  }
  1333.     digiOutDoesQuad                = $00001000;                    {  digitizer can stretch exactly quadruple size  }
  1334.     digiOutDoesQuarter            = $00002000;                    {  digitizer can shrink to exactly quarter size  }
  1335.     digiOutDoesSixteenth        = $00004000;                    {  digitizer can shrink to exactly sixteenth size  }
  1336.     digiOutDoesRotate            = $00008000;                    {  digitizer supports rotate transformations  }
  1337.     digiOutDoesHorizFlip        = $00010000;                    {  digitizer supports horizontal flips Sx < 0  }
  1338.     digiOutDoesVertFlip            = $00020000;                    {  digitizer supports vertical flips Sy < 0  }
  1339.     digiOutDoesSkew                = $00040000;                    {  digitizer supports skew = shear,twist,  }
  1340.     digiOutDoesBlend            = $00080000;
  1341.     digiOutDoesWarp                = $00100000;
  1342.     digiOutDoesHW_DMA            = $00200000;                    {  digitizer not constrained to local device  }
  1343.     digiOutDoesHWPlayThru        = $00400000;                    {  digitizer doesn't need time to play thru  }
  1344.     digiOutDoesILUT                = $00800000;                    {  digitizer does inverse LUT for index modes  }
  1345.     digiOutDoesKeyColor            = $01000000;                    {  digitizer does key color functions too  }
  1346.     digiOutDoesAsyncGrabs        = $02000000;                    {  digitizer supports async grabs  }
  1347.     digiOutDoesUnreadableScreenBits = $04000000;                {  playthru doesn't generate readable bits on screen }
  1348.     digiOutDoesCompress            = $08000000;                    {  supports alternate output data types  }
  1349.     digiOutDoesCompressOnly        = $10000000;                    {  can't provide raw frames anywhere  }
  1350.     digiOutDoesPlayThruDuringCompress = $20000000;                {  digi can do playthru while providing compressed data  }
  1351.     digiOutDoesCompressPartiallyVisible = $40000000;            {  digi doesn't need all bits visible on screen to do hardware compress  }
  1352.  
  1353. { Types }
  1354.  
  1355. TYPE
  1356.     VideoDigitizerComponent                = ComponentInstance;
  1357.     VideoDigitizerError                    = ComponentResult;
  1358.     DigitizerInfoPtr = ^DigitizerInfo;
  1359.     DigitizerInfo = RECORD
  1360.         vdigType:                INTEGER;
  1361.         inputCapabilityFlags:    LONGINT;
  1362.         outputCapabilityFlags:    LONGINT;
  1363.         inputCurrentFlags:        LONGINT;
  1364.         outputCurrentFlags:        LONGINT;
  1365.         slot:                    INTEGER;                                {  temporary for connection purposes  }
  1366.         gdh:                    GDHandle;                                {  temporary for digitizers that have preferred screen  }
  1367.         maskgdh:                GDHandle;                                {  temporary for digitizers that have mask planes  }
  1368.         minDestHeight:            INTEGER;                                {  Smallest resizable height  }
  1369.         minDestWidth:            INTEGER;                                {  Smallest resizable width  }
  1370.         maxDestHeight:            INTEGER;                                {  Largest resizable height  }
  1371.         maxDestWidth:            INTEGER;                                {  Largest resizable height  }
  1372.         blendLevels:            INTEGER;                                {  Number of blend levels supported (2 if 1 bit mask)  }
  1373.         reserved:                LONGINT;                                {  reserved  }
  1374.     END;
  1375.  
  1376.     VdigTypePtr = ^VdigType;
  1377.     VdigType = RECORD
  1378.         digType:                LONGINT;
  1379.         reserved:                LONGINT;
  1380.     END;
  1381.  
  1382.     VdigTypeListPtr = ^VdigTypeList;
  1383.     VdigTypeList = RECORD
  1384.         count:                    INTEGER;
  1385.         list:                    ARRAY [0..0] OF VdigType;
  1386.     END;
  1387.  
  1388.     VdigBufferRecPtr = ^VdigBufferRec;
  1389.     VdigBufferRec = RECORD
  1390.         dest:                    PixMapHandle;
  1391.         location:                Point;
  1392.         reserved:                LONGINT;
  1393.     END;
  1394.  
  1395.     VdigBufferRecListPtr = ^VdigBufferRecList;
  1396.     VdigBufferRecList = RECORD
  1397.         count:                    INTEGER;
  1398.         matrix:                    MatrixRecordPtr;
  1399.         mask:                    RgnHandle;
  1400.         list:                    ARRAY [0..0] OF VdigBufferRec;
  1401.     END;
  1402.  
  1403.     VdigBufferRecListHandle                = ^VdigBufferRecListPtr;
  1404. {$IFC TYPED_FUNCTION_POINTERS}
  1405.     VdigIntProcPtr = PROCEDURE(flags: LONGINT; refcon: LONGINT);
  1406. {$ELSEC}
  1407.     VdigIntProcPtr = ProcPtr;
  1408. {$ENDC}
  1409.  
  1410.     VdigIntUPP = UniversalProcPtr;
  1411.     VDCompressionListPtr = ^VDCompressionList;
  1412.     VDCompressionList = RECORD
  1413.         codec:                    CodecComponent;
  1414.         cType:                    CodecType;
  1415.         typeName:                Str63;
  1416.         name:                    Str63;
  1417.         formatFlags:            LONGINT;
  1418.         compressFlags:            LONGINT;
  1419.         reserved:                LONGINT;
  1420.     END;
  1421.  
  1422.     VDCompressionListHandle                = ^VDCompressionListPtr;
  1423.  
  1424. CONST
  1425.     dmaDepth1                    = 1;
  1426.     dmaDepth2                    = 2;
  1427.     dmaDepth4                    = 4;
  1428.     dmaDepth8                    = 8;
  1429.     dmaDepth16                    = 16;
  1430.     dmaDepth32                    = 32;
  1431.     dmaDepth2Gray                = 64;
  1432.     dmaDepth4Gray                = 128;
  1433.     dmaDepth8Gray                = 256;
  1434.  
  1435.     kVDIGControlledFrameRate    = -1;
  1436.  
  1437.  
  1438. FUNCTION VDGetMaxSrcRect(ci: VideoDigitizerComponent; inputStd: INTEGER; VAR maxSrcRect: Rect): VideoDigitizerError;
  1439.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1440.     INLINE $2F3C, $0006, $0001, $7000, $A82A;
  1441.     {$ENDC}
  1442. FUNCTION VDGetActiveSrcRect(ci: VideoDigitizerComponent; inputStd: INTEGER; VAR activeSrcRect: Rect): VideoDigitizerError;
  1443.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1444.     INLINE $2F3C, $0006, $0002, $7000, $A82A;
  1445.     {$ENDC}
  1446. FUNCTION VDSetDigitizerRect(ci: VideoDigitizerComponent; VAR digitizerRect: Rect): VideoDigitizerError;
  1447.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1448.     INLINE $2F3C, $0004, $0003, $7000, $A82A;
  1449.     {$ENDC}
  1450. FUNCTION VDGetDigitizerRect(ci: VideoDigitizerComponent; VAR digitizerRect: Rect): VideoDigitizerError;
  1451.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1452.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  1453.     {$ENDC}
  1454. FUNCTION VDGetVBlankRect(ci: VideoDigitizerComponent; inputStd: INTEGER; VAR vBlankRect: Rect): VideoDigitizerError;
  1455.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1456.     INLINE $2F3C, $0006, $0005, $7000, $A82A;
  1457.     {$ENDC}
  1458. FUNCTION VDGetMaskPixMap(ci: VideoDigitizerComponent; maskPixMap: PixMapHandle): VideoDigitizerError;
  1459.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1460.     INLINE $2F3C, $0004, $0006, $7000, $A82A;
  1461.     {$ENDC}
  1462. FUNCTION VDGetPlayThruDestination(ci: VideoDigitizerComponent; VAR dest: PixMapHandle; VAR destRect: Rect; VAR m: MatrixRecord; VAR mask: RgnHandle): VideoDigitizerError;
  1463.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1464.     INLINE $2F3C, $0010, $0008, $7000, $A82A;
  1465.     {$ENDC}
  1466. FUNCTION VDUseThisCLUT(ci: VideoDigitizerComponent; colorTableHandle: CTabHandle): VideoDigitizerError;
  1467.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1468.     INLINE $2F3C, $0004, $0009, $7000, $A82A;
  1469.     {$ENDC}
  1470. FUNCTION VDSetInputGammaValue(ci: VideoDigitizerComponent; channel1: Fixed; channel2: Fixed; channel3: Fixed): VideoDigitizerError;
  1471.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1472.     INLINE $2F3C, $000C, $000A, $7000, $A82A;
  1473.     {$ENDC}
  1474. FUNCTION VDGetInputGammaValue(ci: VideoDigitizerComponent; VAR channel1: Fixed; VAR channel2: Fixed; VAR channel3: Fixed): VideoDigitizerError;
  1475.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1476.     INLINE $2F3C, $000C, $000B, $7000, $A82A;
  1477.     {$ENDC}
  1478. FUNCTION VDSetBrightness(ci: VideoDigitizerComponent; VAR brightness: UInt16): VideoDigitizerError;
  1479.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1480.     INLINE $2F3C, $0004, $000C, $7000, $A82A;
  1481.     {$ENDC}
  1482. FUNCTION VDGetBrightness(ci: VideoDigitizerComponent; VAR brightness: UInt16): VideoDigitizerError;
  1483.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1484.     INLINE $2F3C, $0004, $000D, $7000, $A82A;
  1485.     {$ENDC}
  1486. FUNCTION VDSetContrast(ci: VideoDigitizerComponent; VAR contrast: UInt16): VideoDigitizerError;
  1487.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1488.     INLINE $2F3C, $0004, $000E, $7000, $A82A;
  1489.     {$ENDC}
  1490. FUNCTION VDSetHue(ci: VideoDigitizerComponent; VAR hue: UInt16): VideoDigitizerError;
  1491.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1492.     INLINE $2F3C, $0004, $000F, $7000, $A82A;
  1493.     {$ENDC}
  1494. FUNCTION VDSetSharpness(ci: VideoDigitizerComponent; VAR sharpness: UInt16): VideoDigitizerError;
  1495.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1496.     INLINE $2F3C, $0004, $0010, $7000, $A82A;
  1497.     {$ENDC}
  1498. FUNCTION VDSetSaturation(ci: VideoDigitizerComponent; VAR saturation: UInt16): VideoDigitizerError;
  1499.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1500.     INLINE $2F3C, $0004, $0011, $7000, $A82A;
  1501.     {$ENDC}
  1502. FUNCTION VDGetContrast(ci: VideoDigitizerComponent; VAR contrast: UInt16): VideoDigitizerError;
  1503.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1504.     INLINE $2F3C, $0004, $0012, $7000, $A82A;
  1505.     {$ENDC}
  1506. FUNCTION VDGetHue(ci: VideoDigitizerComponent; VAR hue: UInt16): VideoDigitizerError;
  1507.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1508.     INLINE $2F3C, $0004, $0013, $7000, $A82A;
  1509.     {$ENDC}
  1510. FUNCTION VDGetSharpness(ci: VideoDigitizerComponent; VAR sharpness: UInt16): VideoDigitizerError;
  1511.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1512.     INLINE $2F3C, $0004, $0014, $7000, $A82A;
  1513.     {$ENDC}
  1514. FUNCTION VDGetSaturation(ci: VideoDigitizerComponent; VAR saturation: UInt16): VideoDigitizerError;
  1515.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1516.     INLINE $2F3C, $0004, $0015, $7000, $A82A;
  1517.     {$ENDC}
  1518. FUNCTION VDGrabOneFrame(ci: VideoDigitizerComponent): VideoDigitizerError;
  1519.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1520.     INLINE $2F3C, $0000, $0016, $7000, $A82A;
  1521.     {$ENDC}
  1522. FUNCTION VDGetMaxAuxBuffer(ci: VideoDigitizerComponent; VAR pm: PixMapHandle; VAR r: Rect): VideoDigitizerError;
  1523.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1524.     INLINE $2F3C, $0008, $0017, $7000, $A82A;
  1525.     {$ENDC}
  1526. FUNCTION VDGetDigitizerInfo(ci: VideoDigitizerComponent; VAR info: DigitizerInfo): VideoDigitizerError;
  1527.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1528.     INLINE $2F3C, $0004, $0019, $7000, $A82A;
  1529.     {$ENDC}
  1530. FUNCTION VDGetCurrentFlags(ci: VideoDigitizerComponent; VAR inputCurrentFlag: LONGINT; VAR outputCurrentFlag: LONGINT): VideoDigitizerError;
  1531.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1532.     INLINE $2F3C, $0008, $001A, $7000, $A82A;
  1533.     {$ENDC}
  1534. FUNCTION VDSetKeyColor(ci: VideoDigitizerComponent; index: LONGINT): VideoDigitizerError;
  1535.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1536.     INLINE $2F3C, $0004, $001B, $7000, $A82A;
  1537.     {$ENDC}
  1538. FUNCTION VDGetKeyColor(ci: VideoDigitizerComponent; VAR index: LONGINT): VideoDigitizerError;
  1539.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1540.     INLINE $2F3C, $0004, $001C, $7000, $A82A;
  1541.     {$ENDC}
  1542. FUNCTION VDAddKeyColor(ci: VideoDigitizerComponent; VAR index: LONGINT): VideoDigitizerError;
  1543.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1544.     INLINE $2F3C, $0004, $001D, $7000, $A82A;
  1545.     {$ENDC}
  1546. FUNCTION VDGetNextKeyColor(ci: VideoDigitizerComponent; index: LONGINT): VideoDigitizerError;
  1547.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1548.     INLINE $2F3C, $0004, $001E, $7000, $A82A;
  1549.     {$ENDC}
  1550. FUNCTION VDSetKeyColorRange(ci: VideoDigitizerComponent; VAR minRGB: RGBColor; VAR maxRGB: RGBColor): VideoDigitizerError;
  1551.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1552.     INLINE $2F3C, $0008, $001F, $7000, $A82A;
  1553.     {$ENDC}
  1554. FUNCTION VDGetKeyColorRange(ci: VideoDigitizerComponent; VAR minRGB: RGBColor; VAR maxRGB: RGBColor): VideoDigitizerError;
  1555.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1556.     INLINE $2F3C, $0008, $0020, $7000, $A82A;
  1557.     {$ENDC}
  1558. FUNCTION VDSetDigitizerUserInterrupt(ci: VideoDigitizerComponent; flags: LONGINT; userInterruptProc: VdigIntUPP; refcon: LONGINT): VideoDigitizerError;
  1559.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1560.     INLINE $2F3C, $000C, $0021, $7000, $A82A;
  1561.     {$ENDC}
  1562. FUNCTION VDSetInputColorSpaceMode(ci: VideoDigitizerComponent; colorSpaceMode: INTEGER): VideoDigitizerError;
  1563.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1564.     INLINE $2F3C, $0002, $0022, $7000, $A82A;
  1565.     {$ENDC}
  1566. FUNCTION VDGetInputColorSpaceMode(ci: VideoDigitizerComponent; VAR colorSpaceMode: INTEGER): VideoDigitizerError;
  1567.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1568.     INLINE $2F3C, $0004, $0023, $7000, $A82A;
  1569.     {$ENDC}
  1570. FUNCTION VDSetClipState(ci: VideoDigitizerComponent; clipEnable: INTEGER): VideoDigitizerError;
  1571.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1572.     INLINE $2F3C, $0002, $0024, $7000, $A82A;
  1573.     {$ENDC}
  1574. FUNCTION VDGetClipState(ci: VideoDigitizerComponent; VAR clipEnable: INTEGER): VideoDigitizerError;
  1575.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1576.     INLINE $2F3C, $0004, $0025, $7000, $A82A;
  1577.     {$ENDC}
  1578. FUNCTION VDSetClipRgn(ci: VideoDigitizerComponent; clipRegion: RgnHandle): VideoDigitizerError;
  1579.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1580.     INLINE $2F3C, $0004, $0026, $7000, $A82A;
  1581.     {$ENDC}
  1582. FUNCTION VDClearClipRgn(ci: VideoDigitizerComponent; clipRegion: RgnHandle): VideoDigitizerError;
  1583.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1584.     INLINE $2F3C, $0004, $0027, $7000, $A82A;
  1585.     {$ENDC}
  1586. FUNCTION VDGetCLUTInUse(ci: VideoDigitizerComponent; VAR colorTableHandle: CTabHandle): VideoDigitizerError;
  1587.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1588.     INLINE $2F3C, $0004, $0028, $7000, $A82A;
  1589.     {$ENDC}
  1590. FUNCTION VDSetPLLFilterType(ci: VideoDigitizerComponent; pllType: INTEGER): VideoDigitizerError;
  1591.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1592.     INLINE $2F3C, $0002, $0029, $7000, $A82A;
  1593.     {$ENDC}
  1594. FUNCTION VDGetPLLFilterType(ci: VideoDigitizerComponent; VAR pllType: INTEGER): VideoDigitizerError;
  1595.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1596.     INLINE $2F3C, $0004, $002A, $7000, $A82A;
  1597.     {$ENDC}
  1598. FUNCTION VDGetMaskandValue(ci: VideoDigitizerComponent; blendLevel: UInt16; VAR mask: LONGINT; VAR value: LONGINT): VideoDigitizerError;
  1599.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1600.     INLINE $2F3C, $000A, $002B, $7000, $A82A;
  1601.     {$ENDC}
  1602. FUNCTION VDSetMasterBlendLevel(ci: VideoDigitizerComponent; VAR blendLevel: UInt16): VideoDigitizerError;
  1603.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1604.     INLINE $2F3C, $0004, $002C, $7000, $A82A;
  1605.     {$ENDC}
  1606. FUNCTION VDSetPlayThruDestination(ci: VideoDigitizerComponent; dest: PixMapHandle; destRect: RectPtr; m: MatrixRecordPtr; mask: RgnHandle): VideoDigitizerError;
  1607.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1608.     INLINE $2F3C, $0010, $002D, $7000, $A82A;
  1609.     {$ENDC}
  1610. FUNCTION VDSetPlayThruOnOff(ci: VideoDigitizerComponent; state: INTEGER): VideoDigitizerError;
  1611.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1612.     INLINE $2F3C, $0002, $002E, $7000, $A82A;
  1613.     {$ENDC}
  1614. FUNCTION VDSetFieldPreference(ci: VideoDigitizerComponent; fieldFlag: INTEGER): VideoDigitizerError;
  1615.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1616.     INLINE $2F3C, $0002, $002F, $7000, $A82A;
  1617.     {$ENDC}
  1618. FUNCTION VDGetFieldPreference(ci: VideoDigitizerComponent; VAR fieldFlag: INTEGER): VideoDigitizerError;
  1619.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1620.     INLINE $2F3C, $0004, $0030, $7000, $A82A;
  1621.     {$ENDC}
  1622. FUNCTION VDPreflightDestination(ci: VideoDigitizerComponent; VAR digitizerRect: Rect; VAR dest: PixMapPtr; destRect: RectPtr; m: MatrixRecordPtr): VideoDigitizerError;
  1623.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1624.     INLINE $2F3C, $0010, $0032, $7000, $A82A;
  1625.     {$ENDC}
  1626. FUNCTION VDPreflightGlobalRect(ci: VideoDigitizerComponent; theWindow: GrafPtr; VAR globalRect: Rect): VideoDigitizerError;
  1627.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1628.     INLINE $2F3C, $0008, $0033, $7000, $A82A;
  1629.     {$ENDC}
  1630. FUNCTION VDSetPlayThruGlobalRect(ci: VideoDigitizerComponent; theWindow: GrafPtr; VAR globalRect: Rect): VideoDigitizerError;
  1631.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1632.     INLINE $2F3C, $0008, $0034, $7000, $A82A;
  1633.     {$ENDC}
  1634. FUNCTION VDSetInputGammaRecord(ci: VideoDigitizerComponent; inputGammaPtr: VDGamRecPtr): VideoDigitizerError;
  1635.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1636.     INLINE $2F3C, $0004, $0035, $7000, $A82A;
  1637.     {$ENDC}
  1638. FUNCTION VDGetInputGammaRecord(ci: VideoDigitizerComponent; VAR inputGammaPtr: VDGamRecPtr): VideoDigitizerError;
  1639.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1640.     INLINE $2F3C, $0004, $0036, $7000, $A82A;
  1641.     {$ENDC}
  1642. FUNCTION VDSetBlackLevelValue(ci: VideoDigitizerComponent; VAR blackLevel: UInt16): VideoDigitizerError;
  1643.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1644.     INLINE $2F3C, $0004, $0037, $7000, $A82A;
  1645.     {$ENDC}
  1646. FUNCTION VDGetBlackLevelValue(ci: VideoDigitizerComponent; VAR blackLevel: UInt16): VideoDigitizerError;
  1647.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1648.     INLINE $2F3C, $0004, $0038, $7000, $A82A;
  1649.     {$ENDC}
  1650. FUNCTION VDSetWhiteLevelValue(ci: VideoDigitizerComponent; VAR whiteLevel: UInt16): VideoDigitizerError;
  1651.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1652.     INLINE $2F3C, $0004, $0039, $7000, $A82A;
  1653.     {$ENDC}
  1654. FUNCTION VDGetWhiteLevelValue(ci: VideoDigitizerComponent; VAR whiteLevel: UInt16): VideoDigitizerError;
  1655.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1656.     INLINE $2F3C, $0004, $003A, $7000, $A82A;
  1657.     {$ENDC}
  1658. FUNCTION VDGetVideoDefaults(ci: VideoDigitizerComponent; VAR blackLevel: UInt16; VAR whiteLevel: UInt16; VAR brightness: UInt16; VAR hue: UInt16; VAR saturation: UInt16; VAR contrast: UInt16; VAR sharpness: UInt16): VideoDigitizerError;
  1659.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1660.     INLINE $2F3C, $001C, $003B, $7000, $A82A;
  1661.     {$ENDC}
  1662. FUNCTION VDGetNumberOfInputs(ci: VideoDigitizerComponent; VAR inputs: INTEGER): VideoDigitizerError;
  1663.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1664.     INLINE $2F3C, $0004, $003C, $7000, $A82A;
  1665.     {$ENDC}
  1666. FUNCTION VDGetInputFormat(ci: VideoDigitizerComponent; input: INTEGER; VAR format: INTEGER): VideoDigitizerError;
  1667.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1668.     INLINE $2F3C, $0006, $003D, $7000, $A82A;
  1669.     {$ENDC}
  1670. FUNCTION VDSetInput(ci: VideoDigitizerComponent; input: INTEGER): VideoDigitizerError;
  1671.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1672.     INLINE $2F3C, $0002, $003E, $7000, $A82A;
  1673.     {$ENDC}
  1674. FUNCTION VDGetInput(ci: VideoDigitizerComponent; VAR input: INTEGER): VideoDigitizerError;
  1675.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1676.     INLINE $2F3C, $0004, $003F, $7000, $A82A;
  1677.     {$ENDC}
  1678. FUNCTION VDSetInputStandard(ci: VideoDigitizerComponent; inputStandard: INTEGER): VideoDigitizerError;
  1679.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1680.     INLINE $2F3C, $0002, $0040, $7000, $A82A;
  1681.     {$ENDC}
  1682. FUNCTION VDSetupBuffers(ci: VideoDigitizerComponent; bufferList: VdigBufferRecListHandle): VideoDigitizerError;
  1683.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1684.     INLINE $2F3C, $0004, $0041, $7000, $A82A;
  1685.     {$ENDC}
  1686. FUNCTION VDGrabOneFrameAsync(ci: VideoDigitizerComponent; buffer: INTEGER): VideoDigitizerError;
  1687.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1688.     INLINE $2F3C, $0002, $0042, $7000, $A82A;
  1689.     {$ENDC}
  1690. FUNCTION VDDone(ci: VideoDigitizerComponent; buffer: INTEGER): VideoDigitizerError;
  1691.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1692.     INLINE $2F3C, $0002, $0043, $7000, $A82A;
  1693.     {$ENDC}
  1694. FUNCTION VDSetCompression(ci: VideoDigitizerComponent; compressType: OSType; depth: INTEGER; VAR bounds: Rect; spatialQuality: CodecQ; temporalQuality: CodecQ; keyFrameRate: LONGINT): VideoDigitizerError;
  1695.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1696.     INLINE $2F3C, $0016, $0044, $7000, $A82A;
  1697.     {$ENDC}
  1698. FUNCTION VDCompressOneFrameAsync(ci: VideoDigitizerComponent): VideoDigitizerError;
  1699.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1700.     INLINE $2F3C, $0000, $0045, $7000, $A82A;
  1701.     {$ENDC}
  1702. FUNCTION VDCompressDone(ci: VideoDigitizerComponent; VAR done: BOOLEAN; VAR theData: Ptr; VAR dataSize: LONGINT; VAR similarity: UInt8; VAR t: TimeRecord): VideoDigitizerError;
  1703.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1704.     INLINE $2F3C, $0014, $0046, $7000, $A82A;
  1705.     {$ENDC}
  1706. FUNCTION VDReleaseCompressBuffer(ci: VideoDigitizerComponent; bufferAddr: Ptr): VideoDigitizerError;
  1707.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1708.     INLINE $2F3C, $0004, $0047, $7000, $A82A;
  1709.     {$ENDC}
  1710. FUNCTION VDGetImageDescription(ci: VideoDigitizerComponent; desc: ImageDescriptionHandle): VideoDigitizerError;
  1711.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1712.     INLINE $2F3C, $0004, $0048, $7000, $A82A;
  1713.     {$ENDC}
  1714. FUNCTION VDResetCompressSequence(ci: VideoDigitizerComponent): VideoDigitizerError;
  1715.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1716.     INLINE $2F3C, $0000, $0049, $7000, $A82A;
  1717.     {$ENDC}
  1718. FUNCTION VDSetCompressionOnOff(ci: VideoDigitizerComponent; state: BOOLEAN): VideoDigitizerError;
  1719.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1720.     INLINE $2F3C, $0002, $004A, $7000, $A82A;
  1721.     {$ENDC}
  1722. FUNCTION VDGetCompressionTypes(ci: VideoDigitizerComponent; h: VDCompressionListHandle): VideoDigitizerError;
  1723.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1724.     INLINE $2F3C, $0004, $004B, $7000, $A82A;
  1725.     {$ENDC}
  1726. FUNCTION VDSetTimeBase(ci: VideoDigitizerComponent; t: TimeBase): VideoDigitizerError;
  1727.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1728.     INLINE $2F3C, $0004, $004C, $7000, $A82A;
  1729.     {$ENDC}
  1730. FUNCTION VDSetFrameRate(ci: VideoDigitizerComponent; framesPerSecond: Fixed): VideoDigitizerError;
  1731.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1732.     INLINE $2F3C, $0004, $004D, $7000, $A82A;
  1733.     {$ENDC}
  1734. FUNCTION VDGetDataRate(ci: VideoDigitizerComponent; VAR milliSecPerFrame: LONGINT; VAR framesPerSecond: Fixed; VAR bytesPerSecond: LONGINT): VideoDigitizerError;
  1735.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1736.     INLINE $2F3C, $000C, $004E, $7000, $A82A;
  1737.     {$ENDC}
  1738. FUNCTION VDGetSoundInputDriver(ci: VideoDigitizerComponent; VAR soundDriverName: Str255): VideoDigitizerError;
  1739.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1740.     INLINE $2F3C, $0004, $004F, $7000, $A82A;
  1741.     {$ENDC}
  1742. FUNCTION VDGetDMADepths(ci: VideoDigitizerComponent; VAR depthArray: LONGINT; VAR preferredDepth: LONGINT): VideoDigitizerError;
  1743.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1744.     INLINE $2F3C, $0008, $0050, $7000, $A82A;
  1745.     {$ENDC}
  1746. FUNCTION VDGetPreferredTimeScale(ci: VideoDigitizerComponent; VAR preferred: TimeScale): VideoDigitizerError;
  1747.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1748.     INLINE $2F3C, $0004, $0051, $7000, $A82A;
  1749.     {$ENDC}
  1750. FUNCTION VDReleaseAsyncBuffers(ci: VideoDigitizerComponent): VideoDigitizerError;
  1751.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1752.     INLINE $2F3C, $0000, $0052, $7000, $A82A;
  1753.     {$ENDC}
  1754. { 83 is reserved for compatibility reasons }
  1755. FUNCTION VDSetDataRate(ci: VideoDigitizerComponent; bytesPerSecond: LONGINT): VideoDigitizerError;
  1756.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1757.     INLINE $2F3C, $0004, $0054, $7000, $A82A;
  1758.     {$ENDC}
  1759. FUNCTION VDGetTimeCode(ci: VideoDigitizerComponent; VAR atTime: TimeRecord; timeCodeFormat: UNIV Ptr; timeCodeTime: UNIV Ptr): VideoDigitizerError;
  1760.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1761.     INLINE $2F3C, $000C, $0055, $7000, $A82A;
  1762.     {$ENDC}
  1763. FUNCTION VDUseSafeBuffers(ci: VideoDigitizerComponent; useSafeBuffers: BOOLEAN): VideoDigitizerError;
  1764.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1765.     INLINE $2F3C, $0002, $0056, $7000, $A82A;
  1766.     {$ENDC}
  1767. FUNCTION VDGetSoundInputSource(ci: VideoDigitizerComponent; videoInput: LONGINT; VAR soundInput: LONGINT): VideoDigitizerError;
  1768.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1769.     INLINE $2F3C, $0008, $0057, $7000, $A82A;
  1770.     {$ENDC}
  1771. FUNCTION VDGetCompressionTime(ci: VideoDigitizerComponent; compressionType: OSType; depth: INTEGER; VAR srcRect: Rect; VAR spatialQuality: CodecQ; VAR temporalQuality: CodecQ; VAR compressTime: UInt32): VideoDigitizerError;
  1772.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1773.     INLINE $2F3C, $0016, $0058, $7000, $A82A;
  1774.     {$ENDC}
  1775. FUNCTION VDSetPreferredPacketSize(ci: VideoDigitizerComponent; preferredPacketSizeInBytes: LONGINT): VideoDigitizerError;
  1776.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1777.     INLINE $2F3C, $0004, $0059, $7000, $A82A;
  1778.     {$ENDC}
  1779. FUNCTION VDSetPreferredImageDimensions(ci: VideoDigitizerComponent; width: LONGINT; height: LONGINT): VideoDigitizerError;
  1780.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1781.     INLINE $2F3C, $0008, $005A, $7000, $A82A;
  1782.     {$ENDC}
  1783. FUNCTION VDGetPreferredImageDimensions(ci: VideoDigitizerComponent; VAR width: LONGINT; VAR height: LONGINT): VideoDigitizerError;
  1784.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1785.     INLINE $2F3C, $0008, $005B, $7000, $A82A;
  1786.     {$ENDC}
  1787. FUNCTION VDGetInputName(ci: VideoDigitizerComponent; videoInput: LONGINT; VAR name: Str255): VideoDigitizerError;
  1788.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1789.     INLINE $2F3C, $0008, $005C, $7000, $A82A;
  1790.     {$ENDC}
  1791.  
  1792.  
  1793. {
  1794.     General Sequence Grab stuff
  1795. }
  1796.  
  1797. TYPE
  1798.     SeqGrabComponent                    = ComponentInstance;
  1799.     SGChannel                            = ComponentInstance;
  1800.  
  1801. CONST
  1802.     SeqGrabComponentType        = 'barg';
  1803.     SeqGrabChannelType            = 'sgch';
  1804.     SeqGrabPanelType            = 'sgpn';
  1805.     SeqGrabCompressionPanelType    = 'cmpr';
  1806.     SeqGrabSourcePanelType        = 'sour';
  1807.  
  1808.     seqGrabToDisk                = 1;
  1809.     seqGrabToMemory                = 2;
  1810.     seqGrabDontUseTempMemory    = 4;
  1811.     seqGrabAppendToFile            = 8;
  1812.     seqGrabDontAddMovieResource    = 16;
  1813.     seqGrabDontMakeMovie        = 32;
  1814.     seqGrabPreExtendFile        = 64;
  1815.     seqGrabDataProcIsInterruptSafe = 128;
  1816.     seqGrabDataProcDoesOverlappingReads = 256;
  1817.  
  1818.  
  1819. TYPE
  1820.     SeqGrabDataOutputEnum                = UInt32;
  1821.  
  1822. CONST
  1823.     seqGrabRecord                = 1;
  1824.     seqGrabPreview                = 2;
  1825.     seqGrabPlayDuringRecord        = 4;
  1826.  
  1827.  
  1828. TYPE
  1829.     SeqGrabUsageEnum                    = UInt32;
  1830.  
  1831. CONST
  1832.     seqGrabHasBounds            = 1;
  1833.     seqGrabHasVolume            = 2;
  1834.     seqGrabHasDiscreteSamples    = 4;
  1835.  
  1836.  
  1837. TYPE
  1838.     SeqGrabChannelInfoEnum                = UInt32;
  1839.     SGOutputRecordPtr = ^SGOutputRecord;
  1840.     SGOutputRecord = RECORD
  1841.         data:                    ARRAY [0..0] OF LONGINT;
  1842.     END;
  1843.  
  1844.     SGOutput                            = ^SGOutputRecord;
  1845.     SeqGrabFrameInfoPtr = ^SeqGrabFrameInfo;
  1846.     SeqGrabFrameInfo = RECORD
  1847.         frameOffset:            LONGINT;
  1848.         frameTime:                LONGINT;
  1849.         frameSize:                LONGINT;
  1850.         frameChannel:            SGChannel;
  1851.         frameRefCon:            LONGINT;
  1852.     END;
  1853.  
  1854.     SeqGrabExtendedFrameInfoPtr = ^SeqGrabExtendedFrameInfo;
  1855.     SeqGrabExtendedFrameInfo = RECORD
  1856.         frameOffset:            wide;
  1857.         frameTime:                LONGINT;
  1858.         frameSize:                LONGINT;
  1859.         frameChannel:            SGChannel;
  1860.         frameRefCon:            LONGINT;
  1861.         frameOutput:            SGOutput;
  1862.     END;
  1863.  
  1864.  
  1865. CONST
  1866.     grabPictOffScreen            = 1;
  1867.     grabPictIgnoreClip            = 2;
  1868.     grabPictCurrentImage        = 4;
  1869.  
  1870.     sgFlagControlledGrab        = $01;
  1871.  
  1872.  
  1873. TYPE
  1874. {$IFC TYPED_FUNCTION_POINTERS}
  1875.     SGDataProcPtr = FUNCTION(c: SGChannel; p: Ptr; len: LONGINT; VAR offset: LONGINT; chRefCon: LONGINT; time: TimeValue; writeType: INTEGER; refCon: LONGINT): OSErr;
  1876. {$ELSEC}
  1877.     SGDataProcPtr = ProcPtr;
  1878. {$ENDC}
  1879.  
  1880.     SGDataUPP = UniversalProcPtr;
  1881.     SGDeviceNamePtr = ^SGDeviceName;
  1882.     SGDeviceName = RECORD
  1883.         name:                    Str63;
  1884.         icon:                    Handle;
  1885.         flags:                    LONGINT;
  1886.         refCon:                    LONGINT;
  1887.         reserved:                LONGINT;                                {  zero }
  1888.     END;
  1889.  
  1890.  
  1891. CONST
  1892.     sgDeviceNameFlagDeviceUnavailable = $01;
  1893.  
  1894.  
  1895. TYPE
  1896.     SGDeviceListRecordPtr = ^SGDeviceListRecord;
  1897.     SGDeviceListRecord = RECORD
  1898.         count:                    INTEGER;
  1899.         selectedIndex:            INTEGER;
  1900.         reserved:                LONGINT;                                {  zero }
  1901.         entry:                    ARRAY [0..0] OF SGDeviceName;
  1902.     END;
  1903.  
  1904.     SGDeviceListPtr                        = ^SGDeviceListRecord;
  1905.     SGDeviceList                        = ^SGDeviceListPtr;
  1906.  
  1907. CONST
  1908.     sgDeviceListWithIcons        = $01;
  1909.     sgDeviceListDontCheckAvailability = $02;
  1910.  
  1911.     seqGrabWriteAppend            = 0;
  1912.     seqGrabWriteReserve            = 1;
  1913.     seqGrabWriteFill            = 2;
  1914.  
  1915.     seqGrabUnpause                = 0;
  1916.     seqGrabPause                = 1;
  1917.     seqGrabPauseForMenu            = 3;
  1918.  
  1919.     channelFlagDontOpenResFile    = 2;
  1920.     channelFlagHasDependency    = 4;
  1921.  
  1922.  
  1923. TYPE
  1924. {$IFC TYPED_FUNCTION_POINTERS}
  1925.     SGModalFilterProcPtr = FUNCTION(theDialog: DialogPtr; (CONST)VAR theEvent: EventRecord; VAR itemHit: INTEGER; refCon: LONGINT): BOOLEAN;
  1926. {$ELSEC}
  1927.     SGModalFilterProcPtr = ProcPtr;
  1928. {$ENDC}
  1929.  
  1930.     SGModalFilterUPP = UniversalProcPtr;
  1931.  
  1932. CONST
  1933.     sgPanelFlagForPanel            = 1;
  1934.  
  1935.     seqGrabSettingsPreviewOnly    = 1;
  1936.  
  1937.     channelPlayNormal            = 0;
  1938.     channelPlayFast                = 1;
  1939.     channelPlayHighQuality        = 2;
  1940.     channelPlayAllData            = 4;
  1941.  
  1942.  
  1943. FUNCTION SGInitialize(s: SeqGrabComponent): ComponentResult;
  1944.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1945.     INLINE $2F3C, $0000, $0001, $7000, $A82A;
  1946.     {$ENDC}
  1947. FUNCTION SGSetDataOutput(s: SeqGrabComponent; {CONST}VAR movieFile: FSSpec; whereFlags: LONGINT): ComponentResult;
  1948.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1949.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  1950.     {$ENDC}
  1951. FUNCTION SGGetDataOutput(s: SeqGrabComponent; VAR movieFile: FSSpec; VAR whereFlags: LONGINT): ComponentResult;
  1952.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1953.     INLINE $2F3C, $0008, $0003, $7000, $A82A;
  1954.     {$ENDC}
  1955. FUNCTION SGSetGWorld(s: SeqGrabComponent; gp: CGrafPtr; gd: GDHandle): ComponentResult;
  1956.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1957.     INLINE $2F3C, $0008, $0004, $7000, $A82A;
  1958.     {$ENDC}
  1959. FUNCTION SGGetGWorld(s: SeqGrabComponent; VAR gp: CGrafPtr; VAR gd: GDHandle): ComponentResult;
  1960.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1961.     INLINE $2F3C, $0008, $0005, $7000, $A82A;
  1962.     {$ENDC}
  1963. FUNCTION SGNewChannel(s: SeqGrabComponent; channelType: OSType; VAR ref: SGChannel): ComponentResult;
  1964.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1965.     INLINE $2F3C, $0008, $0006, $7000, $A82A;
  1966.     {$ENDC}
  1967. FUNCTION SGDisposeChannel(s: SeqGrabComponent; c: SGChannel): ComponentResult;
  1968.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1969.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  1970.     {$ENDC}
  1971. FUNCTION SGStartPreview(s: SeqGrabComponent): ComponentResult;
  1972.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1973.     INLINE $2F3C, $0000, $0010, $7000, $A82A;
  1974.     {$ENDC}
  1975. FUNCTION SGStartRecord(s: SeqGrabComponent): ComponentResult;
  1976.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1977.     INLINE $2F3C, $0000, $0011, $7000, $A82A;
  1978.     {$ENDC}
  1979. FUNCTION SGIdle(s: SeqGrabComponent): ComponentResult;
  1980.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1981.     INLINE $2F3C, $0000, $0012, $7000, $A82A;
  1982.     {$ENDC}
  1983. FUNCTION SGStop(s: SeqGrabComponent): ComponentResult;
  1984.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1985.     INLINE $2F3C, $0000, $0013, $7000, $A82A;
  1986.     {$ENDC}
  1987. FUNCTION SGPause(s: SeqGrabComponent; pause: ByteParameter): ComponentResult;
  1988.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1989.     INLINE $2F3C, $0002, $0014, $7000, $A82A;
  1990.     {$ENDC}
  1991. FUNCTION SGPrepare(s: SeqGrabComponent; prepareForPreview: BOOLEAN; prepareForRecord: BOOLEAN): ComponentResult;
  1992.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1993.     INLINE $2F3C, $0004, $0015, $7000, $A82A;
  1994.     {$ENDC}
  1995. FUNCTION SGRelease(s: SeqGrabComponent): ComponentResult;
  1996.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1997.     INLINE $2F3C, $0000, $0016, $7000, $A82A;
  1998.     {$ENDC}
  1999. FUNCTION SGGetMovie(s: SeqGrabComponent): Movie;
  2000.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2001.     INLINE $2F3C, $0000, $0017, $7000, $A82A;
  2002.     {$ENDC}
  2003. FUNCTION SGSetMaximumRecordTime(s: SeqGrabComponent; ticks: UInt32): ComponentResult;
  2004.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2005.     INLINE $2F3C, $0004, $0018, $7000, $A82A;
  2006.     {$ENDC}
  2007. FUNCTION SGGetMaximumRecordTime(s: SeqGrabComponent; VAR ticks: UInt32): ComponentResult;
  2008.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2009.     INLINE $2F3C, $0004, $0019, $7000, $A82A;
  2010.     {$ENDC}
  2011. FUNCTION SGGetStorageSpaceRemaining(s: SeqGrabComponent; VAR bytes: UInt32): ComponentResult;
  2012.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2013.     INLINE $2F3C, $0004, $001A, $7000, $A82A;
  2014.     {$ENDC}
  2015. FUNCTION SGGetTimeRemaining(s: SeqGrabComponent; VAR ticksLeft: LONGINT): ComponentResult;
  2016.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2017.     INLINE $2F3C, $0004, $001B, $7000, $A82A;
  2018.     {$ENDC}
  2019. FUNCTION SGGrabPict(s: SeqGrabComponent; VAR p: PicHandle; {CONST}VAR bounds: Rect; offscreenDepth: INTEGER; grabPictFlags: LONGINT): ComponentResult;
  2020.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2021.     INLINE $2F3C, $000E, $001C, $7000, $A82A;
  2022.     {$ENDC}
  2023. FUNCTION SGGetLastMovieResID(s: SeqGrabComponent; VAR resID: INTEGER): ComponentResult;
  2024.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2025.     INLINE $2F3C, $0004, $001D, $7000, $A82A;
  2026.     {$ENDC}
  2027. FUNCTION SGSetFlags(s: SeqGrabComponent; sgFlags: LONGINT): ComponentResult;
  2028.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2029.     INLINE $2F3C, $0004, $001E, $7000, $A82A;
  2030.     {$ENDC}
  2031. FUNCTION SGGetFlags(s: SeqGrabComponent; VAR sgFlags: LONGINT): ComponentResult;
  2032.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2033.     INLINE $2F3C, $0004, $001F, $7000, $A82A;
  2034.     {$ENDC}
  2035. FUNCTION SGSetDataProc(s: SeqGrabComponent; proc: SGDataUPP; refCon: LONGINT): ComponentResult;
  2036.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2037.     INLINE $2F3C, $0008, $0020, $7000, $A82A;
  2038.     {$ENDC}
  2039. FUNCTION SGNewChannelFromComponent(s: SeqGrabComponent; VAR newChannel: SGChannel; sgChannelComponent: Component): ComponentResult;
  2040.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2041.     INLINE $2F3C, $0008, $0021, $7000, $A82A;
  2042.     {$ENDC}
  2043. FUNCTION SGDisposeDeviceList(s: SeqGrabComponent; list: SGDeviceList): ComponentResult;
  2044.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2045.     INLINE $2F3C, $0004, $0022, $7000, $A82A;
  2046.     {$ENDC}
  2047. FUNCTION SGAppendDeviceListToMenu(s: SeqGrabComponent; list: SGDeviceList; mh: MenuHandle): ComponentResult;
  2048.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2049.     INLINE $2F3C, $0008, $0023, $7000, $A82A;
  2050.     {$ENDC}
  2051. FUNCTION SGSetSettings(s: SeqGrabComponent; ud: UserData; flags: LONGINT): ComponentResult;
  2052.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2053.     INLINE $2F3C, $0008, $0024, $7000, $A82A;
  2054.     {$ENDC}
  2055. FUNCTION SGGetSettings(s: SeqGrabComponent; VAR ud: UserData; flags: LONGINT): ComponentResult;
  2056.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2057.     INLINE $2F3C, $0008, $0025, $7000, $A82A;
  2058.     {$ENDC}
  2059. FUNCTION SGGetIndChannel(s: SeqGrabComponent; index: INTEGER; VAR ref: SGChannel; VAR chanType: OSType): ComponentResult;
  2060.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2061.     INLINE $2F3C, $000A, $0026, $7000, $A82A;
  2062.     {$ENDC}
  2063. FUNCTION SGUpdate(s: SeqGrabComponent; updateRgn: RgnHandle): ComponentResult;
  2064.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2065.     INLINE $2F3C, $0004, $0027, $7000, $A82A;
  2066.     {$ENDC}
  2067. FUNCTION SGGetPause(s: SeqGrabComponent; VAR paused: Byte): ComponentResult;
  2068.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2069.     INLINE $2F3C, $0004, $0028, $7000, $A82A;
  2070.     {$ENDC}
  2071.  
  2072. TYPE
  2073.     ConstComponentListPtr                = ^Component;
  2074. FUNCTION SGSettingsDialog(s: SeqGrabComponent; c: SGChannel; numPanels: INTEGER; panelList: ConstComponentListPtr; flags: LONGINT; proc: SGModalFilterUPP; procRefNum: LONGINT): ComponentResult;
  2075.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2076.     INLINE $2F3C, $0016, $0029, $7000, $A82A;
  2077.     {$ENDC}
  2078. FUNCTION SGGetAlignmentProc(s: SeqGrabComponent; alignmentProc: ICMAlignmentProcRecordPtr): ComponentResult;
  2079.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2080.     INLINE $2F3C, $0004, $002A, $7000, $A82A;
  2081.     {$ENDC}
  2082. FUNCTION SGSetChannelSettings(s: SeqGrabComponent; c: SGChannel; ud: UserData; flags: LONGINT): ComponentResult;
  2083.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2084.     INLINE $2F3C, $000C, $002B, $7000, $A82A;
  2085.     {$ENDC}
  2086. FUNCTION SGGetChannelSettings(s: SeqGrabComponent; c: SGChannel; VAR ud: UserData; flags: LONGINT): ComponentResult;
  2087.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2088.     INLINE $2F3C, $000C, $002C, $7000, $A82A;
  2089.     {$ENDC}
  2090. FUNCTION SGGetMode(s: SeqGrabComponent; VAR previewMode: BOOLEAN; VAR recordMode: BOOLEAN): ComponentResult;
  2091.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2092.     INLINE $2F3C, $0008, $002D, $7000, $A82A;
  2093.     {$ENDC}
  2094. FUNCTION SGSetDataRef(s: SeqGrabComponent; dataRef: Handle; dataRefType: OSType; whereFlags: LONGINT): ComponentResult;
  2095.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2096.     INLINE $2F3C, $000C, $002E, $7000, $A82A;
  2097.     {$ENDC}
  2098. FUNCTION SGGetDataRef(s: SeqGrabComponent; VAR dataRef: Handle; VAR dataRefType: OSType; VAR whereFlags: LONGINT): ComponentResult;
  2099.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2100.     INLINE $2F3C, $000C, $002F, $7000, $A82A;
  2101.     {$ENDC}
  2102. FUNCTION SGNewOutput(s: SeqGrabComponent; dataRef: Handle; dataRefType: OSType; whereFlags: LONGINT; VAR sgOut: SGOutput): ComponentResult;
  2103.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2104.     INLINE $2F3C, $0010, $0030, $7000, $A82A;
  2105.     {$ENDC}
  2106. FUNCTION SGDisposeOutput(s: SeqGrabComponent; sgOut: SGOutput): ComponentResult;
  2107.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2108.     INLINE $2F3C, $0004, $0031, $7000, $A82A;
  2109.     {$ENDC}
  2110. FUNCTION SGSetOutputFlags(s: SeqGrabComponent; sgOut: SGOutput; whereFlags: LONGINT): ComponentResult;
  2111.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2112.     INLINE $2F3C, $0008, $0032, $7000, $A82A;
  2113.     {$ENDC}
  2114. FUNCTION SGSetChannelOutput(s: SeqGrabComponent; c: SGChannel; sgOut: SGOutput): ComponentResult;
  2115.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2116.     INLINE $2F3C, $0008, $0033, $7000, $A82A;
  2117.     {$ENDC}
  2118. FUNCTION SGGetDataOutputStorageSpaceRemaining(s: SeqGrabComponent; sgOut: SGOutput; VAR space: UInt32): ComponentResult;
  2119.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2120.     INLINE $2F3C, $0008, $0034, $7000, $A82A;
  2121.     {$ENDC}
  2122. FUNCTION SGHandleUpdateEvent(s: SeqGrabComponent; {CONST}VAR event: EventRecord; VAR handled: BOOLEAN): ComponentResult;
  2123.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2124.     INLINE $2F3C, $0008, $0035, $7000, $A82A;
  2125.     {$ENDC}
  2126. FUNCTION SGSetOutputNextOutput(s: SeqGrabComponent; sgOut: SGOutput; nextOut: SGOutput): ComponentResult;
  2127.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2128.     INLINE $2F3C, $0008, $0036, $7000, $A82A;
  2129.     {$ENDC}
  2130. FUNCTION SGGetOutputNextOutput(s: SeqGrabComponent; sgOut: SGOutput; VAR nextOut: SGOutput): ComponentResult;
  2131.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2132.     INLINE $2F3C, $0008, $0037, $7000, $A82A;
  2133.     {$ENDC}
  2134. FUNCTION SGSetOutputMaximumOffset(s: SeqGrabComponent; sgOut: SGOutput; {CONST}VAR maxOffset: wide): ComponentResult;
  2135.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2136.     INLINE $2F3C, $0008, $0038, $7000, $A82A;
  2137.     {$ENDC}
  2138. FUNCTION SGGetOutputMaximumOffset(s: SeqGrabComponent; sgOut: SGOutput; VAR maxOffset: wide): ComponentResult;
  2139.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2140.     INLINE $2F3C, $0008, $0039, $7000, $A82A;
  2141.     {$ENDC}
  2142. FUNCTION SGGetOutputDataReference(s: SeqGrabComponent; sgOut: SGOutput; VAR dataRef: Handle; VAR dataRefType: OSType): ComponentResult;
  2143.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2144.     INLINE $2F3C, $000C, $003A, $7000, $A82A;
  2145.     {$ENDC}
  2146. FUNCTION SGWriteExtendedMovieData(s: SeqGrabComponent; c: SGChannel; p: Ptr; len: LONGINT; VAR offset: wide; VAR sgOut: SGOutput): ComponentResult;
  2147.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2148.     INLINE $2F3C, $0014, $003B, $7000, $A82A;
  2149.     {$ENDC}
  2150. {
  2151.     calls from Channel to seqGrab
  2152. }
  2153. FUNCTION SGWriteMovieData(s: SeqGrabComponent; c: SGChannel; p: Ptr; len: LONGINT; VAR offset: LONGINT): ComponentResult;
  2154.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2155.     INLINE $2F3C, $0010, $0100, $7000, $A82A;
  2156.     {$ENDC}
  2157. FUNCTION SGAddFrameReference(s: SeqGrabComponent; frameInfo: SeqGrabFrameInfoPtr): ComponentResult;
  2158.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2159.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  2160.     {$ENDC}
  2161. FUNCTION SGGetNextFrameReference(s: SeqGrabComponent; frameInfo: SeqGrabFrameInfoPtr; VAR frameDuration: TimeValue; VAR frameNumber: LONGINT): ComponentResult;
  2162.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2163.     INLINE $2F3C, $000C, $0102, $7000, $A82A;
  2164.     {$ENDC}
  2165. FUNCTION SGGetTimeBase(s: SeqGrabComponent; VAR tb: TimeBase): ComponentResult;
  2166.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2167.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  2168.     {$ENDC}
  2169. FUNCTION SGSortDeviceList(s: SeqGrabComponent; list: SGDeviceList): ComponentResult;
  2170.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2171.     INLINE $2F3C, $0004, $0104, $7000, $A82A;
  2172.     {$ENDC}
  2173. FUNCTION SGAddMovieData(s: SeqGrabComponent; c: SGChannel; p: Ptr; len: LONGINT; VAR offset: LONGINT; chRefCon: LONGINT; time: TimeValue; writeType: INTEGER): ComponentResult;
  2174.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2175.     INLINE $2F3C, $001A, $0105, $7000, $A82A;
  2176.     {$ENDC}
  2177. FUNCTION SGChangedSource(s: SeqGrabComponent; c: SGChannel): ComponentResult;
  2178.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2179.     INLINE $2F3C, $0004, $0106, $7000, $A82A;
  2180.     {$ENDC}
  2181. FUNCTION SGAddExtendedFrameReference(s: SeqGrabComponent; frameInfo: SeqGrabExtendedFrameInfoPtr): ComponentResult;
  2182.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2183.     INLINE $2F3C, $0004, $0107, $7000, $A82A;
  2184.     {$ENDC}
  2185. FUNCTION SGGetNextExtendedFrameReference(s: SeqGrabComponent; frameInfo: SeqGrabExtendedFrameInfoPtr; VAR frameDuration: TimeValue; VAR frameNumber: LONGINT): ComponentResult;
  2186.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2187.     INLINE $2F3C, $000C, $0108, $7000, $A82A;
  2188.     {$ENDC}
  2189. FUNCTION SGAddExtendedMovieData(s: SeqGrabComponent; c: SGChannel; p: Ptr; len: LONGINT; VAR offset: wide; chRefCon: LONGINT; time: TimeValue; writeType: INTEGER; VAR whichOutput: SGOutput): ComponentResult;
  2190.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2191.     INLINE $2F3C, $001E, $0109, $7000, $A82A;
  2192.     {$ENDC}
  2193. FUNCTION SGAddOutputDataRefToMedia(s: SeqGrabComponent; sgOut: SGOutput; theMedia: Media; desc: SampleDescriptionHandle): ComponentResult;
  2194.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2195.     INLINE $2F3C, $000C, $010A, $7000, $A82A;
  2196.     {$ENDC}
  2197.  
  2198.  
  2199. {** Sequence Grab CHANNEL Component Stuff **}
  2200.  
  2201. FUNCTION SGSetChannelUsage(c: SGChannel; usage: LONGINT): ComponentResult;
  2202.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2203.     INLINE $2F3C, $0004, $0080, $7000, $A82A;
  2204.     {$ENDC}
  2205. FUNCTION SGGetChannelUsage(c: SGChannel; VAR usage: LONGINT): ComponentResult;
  2206.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2207.     INLINE $2F3C, $0004, $0081, $7000, $A82A;
  2208.     {$ENDC}
  2209. FUNCTION SGSetChannelBounds(c: SGChannel; {CONST}VAR bounds: Rect): ComponentResult;
  2210.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2211.     INLINE $2F3C, $0004, $0082, $7000, $A82A;
  2212.     {$ENDC}
  2213. FUNCTION SGGetChannelBounds(c: SGChannel; VAR bounds: Rect): ComponentResult;
  2214.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2215.     INLINE $2F3C, $0004, $0083, $7000, $A82A;
  2216.     {$ENDC}
  2217. FUNCTION SGSetChannelVolume(c: SGChannel; volume: INTEGER): ComponentResult;
  2218.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2219.     INLINE $2F3C, $0002, $0084, $7000, $A82A;
  2220.     {$ENDC}
  2221. FUNCTION SGGetChannelVolume(c: SGChannel; VAR volume: INTEGER): ComponentResult;
  2222.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2223.     INLINE $2F3C, $0004, $0085, $7000, $A82A;
  2224.     {$ENDC}
  2225. FUNCTION SGGetChannelInfo(c: SGChannel; VAR channelInfo: LONGINT): ComponentResult;
  2226.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2227.     INLINE $2F3C, $0004, $0086, $7000, $A82A;
  2228.     {$ENDC}
  2229. FUNCTION SGSetChannelPlayFlags(c: SGChannel; playFlags: LONGINT): ComponentResult;
  2230.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2231.     INLINE $2F3C, $0004, $0087, $7000, $A82A;
  2232.     {$ENDC}
  2233. FUNCTION SGGetChannelPlayFlags(c: SGChannel; VAR playFlags: LONGINT): ComponentResult;
  2234.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2235.     INLINE $2F3C, $0004, $0088, $7000, $A82A;
  2236.     {$ENDC}
  2237. FUNCTION SGSetChannelMaxFrames(c: SGChannel; frameCount: LONGINT): ComponentResult;
  2238.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2239.     INLINE $2F3C, $0004, $0089, $7000, $A82A;
  2240.     {$ENDC}
  2241. FUNCTION SGGetChannelMaxFrames(c: SGChannel; VAR frameCount: LONGINT): ComponentResult;
  2242.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2243.     INLINE $2F3C, $0004, $008A, $7000, $A82A;
  2244.     {$ENDC}
  2245. FUNCTION SGSetChannelRefCon(c: SGChannel; refCon: LONGINT): ComponentResult;
  2246.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2247.     INLINE $2F3C, $0004, $008B, $7000, $A82A;
  2248.     {$ENDC}
  2249. FUNCTION SGSetChannelClip(c: SGChannel; theClip: RgnHandle): ComponentResult;
  2250.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2251.     INLINE $2F3C, $0004, $008C, $7000, $A82A;
  2252.     {$ENDC}
  2253. FUNCTION SGGetChannelClip(c: SGChannel; VAR theClip: RgnHandle): ComponentResult;
  2254.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2255.     INLINE $2F3C, $0004, $008D, $7000, $A82A;
  2256.     {$ENDC}
  2257. FUNCTION SGGetChannelSampleDescription(c: SGChannel; sampleDesc: Handle): ComponentResult;
  2258.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2259.     INLINE $2F3C, $0004, $008E, $7000, $A82A;
  2260.     {$ENDC}
  2261. FUNCTION SGGetChannelDeviceList(c: SGChannel; selectionFlags: LONGINT; VAR list: SGDeviceList): ComponentResult;
  2262.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2263.     INLINE $2F3C, $0008, $008F, $7000, $A82A;
  2264.     {$ENDC}
  2265. FUNCTION SGSetChannelDevice(c: SGChannel; name: StringPtr): ComponentResult;
  2266.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2267.     INLINE $2F3C, $0004, $0090, $7000, $A82A;
  2268.     {$ENDC}
  2269. FUNCTION SGSetChannelMatrix(c: SGChannel; {CONST}VAR m: MatrixRecord): ComponentResult;
  2270.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2271.     INLINE $2F3C, $0004, $0091, $7000, $A82A;
  2272.     {$ENDC}
  2273. FUNCTION SGGetChannelMatrix(c: SGChannel; VAR m: MatrixRecord): ComponentResult;
  2274.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2275.     INLINE $2F3C, $0004, $0092, $7000, $A82A;
  2276.     {$ENDC}
  2277. FUNCTION SGGetChannelTimeScale(c: SGChannel; VAR scale: TimeScale): ComponentResult;
  2278.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2279.     INLINE $2F3C, $0004, $0093, $7000, $A82A;
  2280.     {$ENDC}
  2281. FUNCTION SGChannelPutPicture(c: SGChannel): ComponentResult;
  2282.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2283.     INLINE $2F3C, $0000, $0094, $7000, $A82A;
  2284.     {$ENDC}
  2285. FUNCTION SGChannelSetRequestedDataRate(c: SGChannel; bytesPerSecond: LONGINT): ComponentResult;
  2286.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2287.     INLINE $2F3C, $0004, $0095, $7000, $A82A;
  2288.     {$ENDC}
  2289. FUNCTION SGChannelGetRequestedDataRate(c: SGChannel; VAR bytesPerSecond: LONGINT): ComponentResult;
  2290.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2291.     INLINE $2F3C, $0004, $0096, $7000, $A82A;
  2292.     {$ENDC}
  2293. FUNCTION SGChannelSetDataSourceName(c: SGChannel; name: Str255; scriptTag: ScriptCode): ComponentResult;
  2294.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2295.     INLINE $2F3C, $0006, $0097, $7000, $A82A;
  2296.     {$ENDC}
  2297. FUNCTION SGChannelGetDataSourceName(c: SGChannel; VAR name: Str255; VAR scriptTag: ScriptCode): ComponentResult;
  2298.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2299.     INLINE $2F3C, $0008, $0098, $7000, $A82A;
  2300.     {$ENDC}
  2301. {
  2302.     calls from seqGrab to Channel
  2303. }
  2304. FUNCTION SGInitChannel(c: SGChannel; owner: SeqGrabComponent): ComponentResult;
  2305.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2306.     INLINE $2F3C, $0004, $0180, $7000, $A82A;
  2307.     {$ENDC}
  2308. FUNCTION SGWriteSamples(c: SGChannel; m: Movie; theFile: AliasHandle): ComponentResult;
  2309.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2310.     INLINE $2F3C, $0008, $0181, $7000, $A82A;
  2311.     {$ENDC}
  2312. FUNCTION SGGetDataRate(c: SGChannel; VAR bytesPerSecond: LONGINT): ComponentResult;
  2313.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2314.     INLINE $2F3C, $0004, $0182, $7000, $A82A;
  2315.     {$ENDC}
  2316. FUNCTION SGAlignChannelRect(c: SGChannel; VAR r: Rect): ComponentResult;
  2317.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2318.     INLINE $2F3C, $0004, $0183, $7000, $A82A;
  2319.     {$ENDC}
  2320. {
  2321.     Dorky dialog panel calls
  2322. }
  2323. FUNCTION SGPanelGetDitl(s: SeqGrabComponent; VAR ditl: Handle): ComponentResult;
  2324.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2325.     INLINE $2F3C, $0004, $0200, $7000, $A82A;
  2326.     {$ENDC}
  2327. FUNCTION SGPanelGetTitle(s: SeqGrabComponent; VAR title: Str255): ComponentResult;
  2328.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2329.     INLINE $2F3C, $0004, $0201, $7000, $A82A;
  2330.     {$ENDC}
  2331. FUNCTION SGPanelCanRun(s: SeqGrabComponent; c: SGChannel): ComponentResult;
  2332.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2333.     INLINE $2F3C, $0004, $0202, $7000, $A82A;
  2334.     {$ENDC}
  2335. FUNCTION SGPanelInstall(s: SeqGrabComponent; c: SGChannel; d: DialogPtr; itemOffset: INTEGER): ComponentResult;
  2336.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2337.     INLINE $2F3C, $000A, $0203, $7000, $A82A;
  2338.     {$ENDC}
  2339. FUNCTION SGPanelEvent(s: SeqGrabComponent; c: SGChannel; d: DialogPtr; itemOffset: INTEGER; {CONST}VAR theEvent: EventRecord; VAR itemHit: INTEGER; VAR handled: BOOLEAN): ComponentResult;
  2340.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2341.     INLINE $2F3C, $0016, $0204, $7000, $A82A;
  2342.     {$ENDC}
  2343. FUNCTION SGPanelItem(s: SeqGrabComponent; c: SGChannel; d: DialogPtr; itemOffset: INTEGER; itemNum: INTEGER): ComponentResult;
  2344.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2345.     INLINE $2F3C, $000C, $0205, $7000, $A82A;
  2346.     {$ENDC}
  2347. FUNCTION SGPanelRemove(s: SeqGrabComponent; c: SGChannel; d: DialogPtr; itemOffset: INTEGER): ComponentResult;
  2348.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2349.     INLINE $2F3C, $000A, $0206, $7000, $A82A;
  2350.     {$ENDC}
  2351. FUNCTION SGPanelSetGrabber(s: SeqGrabComponent; sg: SeqGrabComponent): ComponentResult;
  2352.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2353.     INLINE $2F3C, $0004, $0207, $7000, $A82A;
  2354.     {$ENDC}
  2355. FUNCTION SGPanelSetResFile(s: SeqGrabComponent; resRef: INTEGER): ComponentResult;
  2356.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2357.     INLINE $2F3C, $0002, $0208, $7000, $A82A;
  2358.     {$ENDC}
  2359. FUNCTION SGPanelGetSettings(s: SeqGrabComponent; c: SGChannel; VAR ud: UserData; flags: LONGINT): ComponentResult;
  2360.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2361.     INLINE $2F3C, $000C, $0209, $7000, $A82A;
  2362.     {$ENDC}
  2363. FUNCTION SGPanelSetSettings(s: SeqGrabComponent; c: SGChannel; ud: UserData; flags: LONGINT): ComponentResult;
  2364.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2365.     INLINE $2F3C, $000C, $020A, $7000, $A82A;
  2366.     {$ENDC}
  2367. FUNCTION SGPanelValidateInput(s: SeqGrabComponent; VAR ok: BOOLEAN): ComponentResult;
  2368.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2369.     INLINE $2F3C, $0004, $020B, $7000, $A82A;
  2370.     {$ENDC}
  2371. FUNCTION SGPanelSetEventFilter(s: SeqGrabComponent; proc: SGModalFilterUPP; refCon: LONGINT): ComponentResult;
  2372.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2373.     INLINE $2F3C, $0008, $020C, $7000, $A82A;
  2374.     {$ENDC}
  2375.  
  2376. {** Sequence Grab VIDEO CHANNEL Component Stuff **}
  2377. {
  2378.     Video stuff
  2379. }
  2380.  
  2381. TYPE
  2382.     SGCompressInfoPtr = ^SGCompressInfo;
  2383.     SGCompressInfo = RECORD
  2384.         buffer:                    Ptr;
  2385.         bufferSize:                UInt32;
  2386.         similarity:                SInt8;
  2387.         reserved:                SInt8;
  2388.     END;
  2389.  
  2390. {$IFC TYPED_FUNCTION_POINTERS}
  2391.     SGGrabBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; refCon: LONGINT): ComponentResult;
  2392. {$ELSEC}
  2393.     SGGrabBottleProcPtr = ProcPtr;
  2394. {$ENDC}
  2395.  
  2396. {$IFC TYPED_FUNCTION_POINTERS}
  2397.     SGGrabCompleteBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; refCon: LONGINT): ComponentResult;
  2398. {$ELSEC}
  2399.     SGGrabCompleteBottleProcPtr = ProcPtr;
  2400. {$ENDC}
  2401.  
  2402. {$IFC TYPED_FUNCTION_POINTERS}
  2403.     SGDisplayBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT): ComponentResult;
  2404. {$ELSEC}
  2405.     SGDisplayBottleProcPtr = ProcPtr;
  2406. {$ENDC}
  2407.  
  2408. {$IFC TYPED_FUNCTION_POINTERS}
  2409.     SGCompressBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; refCon: LONGINT): ComponentResult;
  2410. {$ELSEC}
  2411.     SGCompressBottleProcPtr = ProcPtr;
  2412. {$ENDC}
  2413.  
  2414. {$IFC TYPED_FUNCTION_POINTERS}
  2415.     SGCompressCompleteBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; VAR ci: SGCompressInfo; refCon: LONGINT): ComponentResult;
  2416. {$ELSEC}
  2417.     SGCompressCompleteBottleProcPtr = ProcPtr;
  2418. {$ENDC}
  2419.  
  2420. {$IFC TYPED_FUNCTION_POINTERS}
  2421.     SGAddFrameBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; atTime: TimeValue; scale: TimeScale; (CONST)VAR ci: SGCompressInfo; refCon: LONGINT): ComponentResult;
  2422. {$ELSEC}
  2423.     SGAddFrameBottleProcPtr = ProcPtr;
  2424. {$ENDC}
  2425.  
  2426. {$IFC TYPED_FUNCTION_POINTERS}
  2427.     SGTransferFrameBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT): ComponentResult;
  2428. {$ELSEC}
  2429.     SGTransferFrameBottleProcPtr = ProcPtr;
  2430. {$ENDC}
  2431.  
  2432. {$IFC TYPED_FUNCTION_POINTERS}
  2433.     SGGrabCompressCompleteBottleProcPtr = FUNCTION(c: SGChannel; VAR done: BOOLEAN; VAR ci: SGCompressInfo; VAR t: TimeRecord; refCon: LONGINT): ComponentResult;
  2434. {$ELSEC}
  2435.     SGGrabCompressCompleteBottleProcPtr = ProcPtr;
  2436. {$ENDC}
  2437.  
  2438. {$IFC TYPED_FUNCTION_POINTERS}
  2439.     SGDisplayCompressBottleProcPtr = FUNCTION(c: SGChannel; dataPtr: Ptr; desc: ImageDescriptionHandle; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT): ComponentResult;
  2440. {$ELSEC}
  2441.     SGDisplayCompressBottleProcPtr = ProcPtr;
  2442. {$ENDC}
  2443.  
  2444.     SGGrabBottleUPP = UniversalProcPtr;
  2445.     SGGrabCompleteBottleUPP = UniversalProcPtr;
  2446.     SGDisplayBottleUPP = UniversalProcPtr;
  2447.     SGCompressBottleUPP = UniversalProcPtr;
  2448.     SGCompressCompleteBottleUPP = UniversalProcPtr;
  2449.     SGAddFrameBottleUPP = UniversalProcPtr;
  2450.     SGTransferFrameBottleUPP = UniversalProcPtr;
  2451.     SGGrabCompressCompleteBottleUPP = UniversalProcPtr;
  2452.     SGDisplayCompressBottleUPP = UniversalProcPtr;
  2453.     VideoBottlesPtr = ^VideoBottles;
  2454.     VideoBottles = RECORD
  2455.         procCount:                INTEGER;
  2456.         grabProc:                SGGrabBottleUPP;
  2457.         grabCompleteProc:        SGGrabCompleteBottleUPP;
  2458.         displayProc:            SGDisplayBottleUPP;
  2459.         compressProc:            SGCompressBottleUPP;
  2460.         compressCompleteProc:    SGCompressCompleteBottleUPP;
  2461.         addFrameProc:            SGAddFrameBottleUPP;
  2462.         transferFrameProc:        SGTransferFrameBottleUPP;
  2463.         grabCompressCompleteProc: SGGrabCompressCompleteBottleUPP;
  2464.         displayCompressProc:    SGDisplayCompressBottleUPP;
  2465.     END;
  2466.  
  2467. FUNCTION SGGetSrcVideoBounds(c: SGChannel; VAR r: Rect): ComponentResult;
  2468.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2469.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  2470.     {$ENDC}
  2471. FUNCTION SGSetVideoRect(c: SGChannel; {CONST}VAR r: Rect): ComponentResult;
  2472.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2473.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  2474.     {$ENDC}
  2475. FUNCTION SGGetVideoRect(c: SGChannel; VAR r: Rect): ComponentResult;
  2476.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2477.     INLINE $2F3C, $0004, $0102, $7000, $A82A;
  2478.     {$ENDC}
  2479. FUNCTION SGGetVideoCompressorType(c: SGChannel; VAR compressorType: OSType): ComponentResult;
  2480.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2481.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  2482.     {$ENDC}
  2483. FUNCTION SGSetVideoCompressorType(c: SGChannel; compressorType: OSType): ComponentResult;
  2484.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2485.     INLINE $2F3C, $0004, $0104, $7000, $A82A;
  2486.     {$ENDC}
  2487. FUNCTION SGSetVideoCompressor(c: SGChannel; depth: INTEGER; compressor: CompressorComponent; spatialQuality: CodecQ; temporalQuality: CodecQ; keyFrameRate: LONGINT): ComponentResult;
  2488.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2489.     INLINE $2F3C, $0012, $0105, $7000, $A82A;
  2490.     {$ENDC}
  2491. FUNCTION SGGetVideoCompressor(c: SGChannel; VAR depth: INTEGER; VAR compressor: CompressorComponent; VAR spatialQuality: CodecQ; VAR temporalQuality: CodecQ; VAR keyFrameRate: LONGINT): ComponentResult;
  2492.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2493.     INLINE $2F3C, $0014, $0106, $7000, $A82A;
  2494.     {$ENDC}
  2495. FUNCTION SGGetVideoDigitizerComponent(c: SGChannel): ComponentInstance;
  2496.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2497.     INLINE $2F3C, $0000, $0107, $7000, $A82A;
  2498.     {$ENDC}
  2499. FUNCTION SGSetVideoDigitizerComponent(c: SGChannel; vdig: ComponentInstance): ComponentResult;
  2500.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2501.     INLINE $2F3C, $0004, $0108, $7000, $A82A;
  2502.     {$ENDC}
  2503. FUNCTION SGVideoDigitizerChanged(c: SGChannel): ComponentResult;
  2504.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2505.     INLINE $2F3C, $0000, $0109, $7000, $A82A;
  2506.     {$ENDC}
  2507. FUNCTION SGSetVideoBottlenecks(c: SGChannel; VAR vb: VideoBottles): ComponentResult;
  2508.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2509.     INLINE $2F3C, $0004, $010A, $7000, $A82A;
  2510.     {$ENDC}
  2511. FUNCTION SGGetVideoBottlenecks(c: SGChannel; VAR vb: VideoBottles): ComponentResult;
  2512.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2513.     INLINE $2F3C, $0004, $010B, $7000, $A82A;
  2514.     {$ENDC}
  2515. FUNCTION SGGrabFrame(c: SGChannel; bufferNum: INTEGER): ComponentResult;
  2516.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2517.     INLINE $2F3C, $0002, $010C, $7000, $A82A;
  2518.     {$ENDC}
  2519. FUNCTION SGGrabFrameComplete(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN): ComponentResult;
  2520.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2521.     INLINE $2F3C, $0006, $010D, $7000, $A82A;
  2522.     {$ENDC}
  2523. FUNCTION SGDisplayFrame(c: SGChannel; bufferNum: INTEGER; {CONST}VAR mp: MatrixRecord; clipRgn: RgnHandle): ComponentResult;
  2524.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2525.     INLINE $2F3C, $000A, $010E, $7000, $A82A;
  2526.     {$ENDC}
  2527. FUNCTION SGCompressFrame(c: SGChannel; bufferNum: INTEGER): ComponentResult;
  2528.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2529.     INLINE $2F3C, $0002, $010F, $7000, $A82A;
  2530.     {$ENDC}
  2531. FUNCTION SGCompressFrameComplete(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; VAR ci: SGCompressInfo): ComponentResult;
  2532.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2533.     INLINE $2F3C, $000A, $0110, $7000, $A82A;
  2534.     {$ENDC}
  2535. FUNCTION SGAddFrame(c: SGChannel; bufferNum: INTEGER; atTime: TimeValue; scale: TimeScale; {CONST}VAR ci: SGCompressInfo): ComponentResult;
  2536.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2537.     INLINE $2F3C, $000E, $0111, $7000, $A82A;
  2538.     {$ENDC}
  2539. FUNCTION SGTransferFrameForCompress(c: SGChannel; bufferNum: INTEGER; {CONST}VAR mp: MatrixRecord; clipRgn: RgnHandle): ComponentResult;
  2540.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2541.     INLINE $2F3C, $000A, $0112, $7000, $A82A;
  2542.     {$ENDC}
  2543. FUNCTION SGSetCompressBuffer(c: SGChannel; depth: INTEGER; {CONST}VAR compressSize: Rect): ComponentResult;
  2544.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2545.     INLINE $2F3C, $0006, $0113, $7000, $A82A;
  2546.     {$ENDC}
  2547. FUNCTION SGGetCompressBuffer(c: SGChannel; VAR depth: INTEGER; VAR compressSize: Rect): ComponentResult;
  2548.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2549.     INLINE $2F3C, $0008, $0114, $7000, $A82A;
  2550.     {$ENDC}
  2551. FUNCTION SGGetBufferInfo(c: SGChannel; bufferNum: INTEGER; VAR bufferPM: PixMapHandle; VAR bufferRect: Rect; VAR compressBuffer: GWorldPtr; VAR compressBufferRect: Rect): ComponentResult;
  2552.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2553.     INLINE $2F3C, $0012, $0115, $7000, $A82A;
  2554.     {$ENDC}
  2555. FUNCTION SGSetUseScreenBuffer(c: SGChannel; useScreenBuffer: BOOLEAN): ComponentResult;
  2556.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2557.     INLINE $2F3C, $0002, $0116, $7000, $A82A;
  2558.     {$ENDC}
  2559. FUNCTION SGGetUseScreenBuffer(c: SGChannel; VAR useScreenBuffer: BOOLEAN): ComponentResult;
  2560.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2561.     INLINE $2F3C, $0004, $0117, $7000, $A82A;
  2562.     {$ENDC}
  2563. FUNCTION SGGrabCompressComplete(c: SGChannel; VAR done: BOOLEAN; VAR ci: SGCompressInfo; VAR tr: TimeRecord): ComponentResult;
  2564.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2565.     INLINE $2F3C, $000C, $0118, $7000, $A82A;
  2566.     {$ENDC}
  2567. FUNCTION SGDisplayCompress(c: SGChannel; dataPtr: Ptr; desc: ImageDescriptionHandle; VAR mp: MatrixRecord; clipRgn: RgnHandle): ComponentResult;
  2568.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2569.     INLINE $2F3C, $0010, $0119, $7000, $A82A;
  2570.     {$ENDC}
  2571. FUNCTION SGSetFrameRate(c: SGChannel; frameRate: Fixed): ComponentResult;
  2572.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2573.     INLINE $2F3C, $0004, $011A, $7000, $A82A;
  2574.     {$ENDC}
  2575. FUNCTION SGGetFrameRate(c: SGChannel; VAR frameRate: Fixed): ComponentResult;
  2576.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2577.     INLINE $2F3C, $0004, $011B, $7000, $A82A;
  2578.     {$ENDC}
  2579.  
  2580. FUNCTION SGSetPreferredPacketSize(c: SGChannel; preferredPacketSizeInBytes: LONGINT): ComponentResult;
  2581.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2582.     INLINE $2F3C, $0004, $0121, $7000, $A82A;
  2583.     {$ENDC}
  2584. FUNCTION SGGetPreferredPacketSize(c: SGChannel; VAR preferredPacketSizeInBytes: LONGINT): ComponentResult;
  2585.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2586.     INLINE $2F3C, $0004, $0122, $7000, $A82A;
  2587.     {$ENDC}
  2588. FUNCTION SGSetUserVideoCompressorList(c: SGChannel; compressorTypes: Handle): ComponentResult;
  2589.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2590.     INLINE $2F3C, $0004, $0123, $7000, $A82A;
  2591.     {$ENDC}
  2592. FUNCTION SGGetUserVideoCompressorList(c: SGChannel; VAR compressorTypes: Handle): ComponentResult;
  2593.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2594.     INLINE $2F3C, $0004, $0124, $7000, $A82A;
  2595.     {$ENDC}
  2596. {** Sequence Grab SOUND CHANNEL Component Stuff **}
  2597.  
  2598. {
  2599.     Sound stuff
  2600. }
  2601. FUNCTION SGSetSoundInputDriver(c: SGChannel; driverName: Str255): ComponentResult;
  2602.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2603.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  2604.     {$ENDC}
  2605. FUNCTION SGGetSoundInputDriver(c: SGChannel): LONGINT;
  2606.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2607.     INLINE $2F3C, $0000, $0101, $7000, $A82A;
  2608.     {$ENDC}
  2609. FUNCTION SGSoundInputDriverChanged(c: SGChannel): ComponentResult;
  2610.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2611.     INLINE $2F3C, $0000, $0102, $7000, $A82A;
  2612.     {$ENDC}
  2613. FUNCTION SGSetSoundRecordChunkSize(c: SGChannel; seconds: LONGINT): ComponentResult;
  2614.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2615.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  2616.     {$ENDC}
  2617. FUNCTION SGGetSoundRecordChunkSize(c: SGChannel): LONGINT;
  2618.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2619.     INLINE $2F3C, $0000, $0104, $7000, $A82A;
  2620.     {$ENDC}
  2621. FUNCTION SGSetSoundInputRate(c: SGChannel; rate: Fixed): ComponentResult;
  2622.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2623.     INLINE $2F3C, $0004, $0105, $7000, $A82A;
  2624.     {$ENDC}
  2625. FUNCTION SGGetSoundInputRate(c: SGChannel): Fixed;
  2626.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2627.     INLINE $2F3C, $0000, $0106, $7000, $A82A;
  2628.     {$ENDC}
  2629. FUNCTION SGSetSoundInputParameters(c: SGChannel; sampleSize: INTEGER; numChannels: INTEGER; compressionType: OSType): ComponentResult;
  2630.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2631.     INLINE $2F3C, $0008, $0107, $7000, $A82A;
  2632.     {$ENDC}
  2633. FUNCTION SGGetSoundInputParameters(c: SGChannel; VAR sampleSize: INTEGER; VAR numChannels: INTEGER; VAR compressionType: OSType): ComponentResult;
  2634.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2635.     INLINE $2F3C, $000C, $0108, $7000, $A82A;
  2636.     {$ENDC}
  2637. FUNCTION SGSetAdditionalSoundRates(c: SGChannel; rates: Handle): ComponentResult;
  2638.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2639.     INLINE $2F3C, $0004, $0109, $7000, $A82A;
  2640.     {$ENDC}
  2641. FUNCTION SGGetAdditionalSoundRates(c: SGChannel; VAR rates: Handle): ComponentResult;
  2642.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2643.     INLINE $2F3C, $0004, $010A, $7000, $A82A;
  2644.     {$ENDC}
  2645. {
  2646.     Text stuff
  2647. }
  2648. FUNCTION SGSetFontName(c: SGChannel; pstr: StringPtr): ComponentResult;
  2649.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2650.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  2651.     {$ENDC}
  2652. FUNCTION SGSetFontSize(c: SGChannel; fontSize: INTEGER): ComponentResult;
  2653.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2654.     INLINE $2F3C, $0002, $0101, $7000, $A82A;
  2655.     {$ENDC}
  2656. FUNCTION SGSetTextForeColor(c: SGChannel; VAR theColor: RGBColor): ComponentResult;
  2657.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2658.     INLINE $2F3C, $0004, $0102, $7000, $A82A;
  2659.     {$ENDC}
  2660. FUNCTION SGSetTextBackColor(c: SGChannel; VAR theColor: RGBColor): ComponentResult;
  2661.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2662.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  2663.     {$ENDC}
  2664. FUNCTION SGSetJustification(c: SGChannel; just: INTEGER): ComponentResult;
  2665.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2666.     INLINE $2F3C, $0002, $0104, $7000, $A82A;
  2667.     {$ENDC}
  2668. FUNCTION SGGetTextReturnToSpaceValue(c: SGChannel; VAR rettospace: INTEGER): ComponentResult;
  2669.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2670.     INLINE $2F3C, $0004, $0105, $7000, $A82A;
  2671.     {$ENDC}
  2672. FUNCTION SGSetTextReturnToSpaceValue(c: SGChannel; rettospace: INTEGER): ComponentResult;
  2673.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2674.     INLINE $2F3C, $0002, $0106, $7000, $A82A;
  2675.     {$ENDC}
  2676. {
  2677.     Music stuff
  2678. }
  2679. FUNCTION SGGetInstrument(c: SGChannel; VAR td: ToneDescription): ComponentResult;
  2680.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2681.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  2682.     {$ENDC}
  2683. FUNCTION SGSetInstrument(c: SGChannel; VAR td: ToneDescription): ComponentResult;
  2684.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2685.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  2686.     {$ENDC}
  2687.  
  2688.  
  2689. CONST
  2690.     sgChannelAtom                = 'chan';
  2691.     sgChannelSettingsAtom        = 'ctom';
  2692.     sgChannelDescription        = 'cdsc';
  2693.     sgChannelSettings            = 'cset';
  2694.  
  2695.     sgDeviceNameType            = 'name';
  2696.     sgUsageType                    = 'use ';
  2697.     sgPlayFlagsType                = 'plyf';
  2698.     sgClipType                    = 'clip';
  2699.     sgMatrixType                = 'mtrx';
  2700.     sgVolumeType                = 'volu';
  2701.  
  2702.     sgPanelSettingsAtom            = 'ptom';
  2703.     sgPanelDescription            = 'pdsc';
  2704.     sgPanelSettings                = 'pset';
  2705.  
  2706.     sgcSoundCompressionType        = 'scmp';
  2707.     sgcSoundSampleRateType        = 'srat';
  2708.     sgcSoundChannelCountType    = 'schn';
  2709.     sgcSoundSampleSizeType        = 'ssiz';
  2710.     sgcSoundInputType            = 'sinp';
  2711.     sgcSoundGainType            = 'gain';
  2712.  
  2713.     sgcVideoHueType                = 'hue ';
  2714.     sgcVideoSaturationType        = 'satr';
  2715.     sgcVideoContrastType        = 'trst';
  2716.     sgcVideoSharpnessType        = 'shrp';
  2717.     sgcVideoBrigtnessType        = 'brit';
  2718.     sgcVideoBlackLevelType        = 'blkl';
  2719.     sgcVideoWhiteLevelType        = 'whtl';
  2720.     sgcVideoInputType            = 'vinp';
  2721.     sgcVideoFormatType            = 'vstd';
  2722.     sgcVideoFilterType            = 'vflt';
  2723.     sgcVideoRectType            = 'vrct';
  2724.     sgcVideoDigitizerType        = 'vdig';
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730. TYPE
  2731.     QTVideoOutputComponent                = ComponentInstance;
  2732. {  Component type and subtype enumerations }
  2733.  
  2734. CONST
  2735.     QTVideoOutputComponentType    = 'vout';
  2736.     QTVideoOutputComponentBaseSubType = 'base';
  2737.  
  2738.  
  2739. {  QTVideoOutput Component flags }
  2740.  
  2741.     kQTVideoOutputDontDisplayToUser = $00000001;
  2742.  
  2743. {  Display mode atom types }
  2744.  
  2745.     kQTVODisplayModeItem        = 'qdmi';
  2746.     kQTVODimensions                = 'dimn';                        {  atom contains two longs - pixel count - width, height }
  2747.     kQTVOResolution                = 'resl';                        {  atom contains two Fixed - hRes, vRes in dpi }
  2748.     kQTVORefreshRate            = 'refr';                        {  atom contains one Fixed - refresh rate in Hz }
  2749.     kQTVOPixelType                = 'pixl';                        {  atom contains one OSType - pixel format of mode }
  2750.     kQTVOName                    = 'name';                        {  atom contains string (no length byte) - name of modefor display to user }
  2751.     kQTVODecompressors            = 'deco';                        {  atom contains other atoms indicating supported decompressors }
  2752.                                                                 {  kQTVODecompressors sub-atoms }
  2753.     kQTVODecompressorType        = 'dety';                        {  atom contains one OSType - decompressor type code }
  2754.     kQTVODecompressorContinuous    = 'cont';                        {  atom contains one Boolean - true if this type is displayed continuously }
  2755.     kQTVODecompressorComponent    = 'cmpt';                        {  atom contains one Component - component id of decompressor }
  2756.  
  2757. {* These are QTVideoOutput procedures *}
  2758. FUNCTION QTVideoOutputGetDisplayModeList(vo: QTVideoOutputComponent; VAR outputs: QTAtomContainer): ComponentResult;
  2759.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2760.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  2761.     {$ENDC}
  2762. FUNCTION QTVideoOutputGetCurrentClientName(vo: QTVideoOutputComponent; VAR str: Str255): ComponentResult;
  2763.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2764.     INLINE $2F3C, $0004, $0002, $7000, $A82A;
  2765.     {$ENDC}
  2766. FUNCTION QTVideoOutputSetClientName(vo: QTVideoOutputComponent; str: Str255): ComponentResult;
  2767.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2768.     INLINE $2F3C, $0004, $0003, $7000, $A82A;
  2769.     {$ENDC}
  2770. FUNCTION QTVideoOutputGetClientName(vo: QTVideoOutputComponent; VAR str: Str255): ComponentResult;
  2771.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2772.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  2773.     {$ENDC}
  2774. FUNCTION QTVideoOutputBegin(vo: QTVideoOutputComponent): ComponentResult;
  2775.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2776.     INLINE $2F3C, $0000, $0005, $7000, $A82A;
  2777.     {$ENDC}
  2778. FUNCTION QTVideoOutputEnd(vo: QTVideoOutputComponent): ComponentResult;
  2779.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2780.     INLINE $2F3C, $0000, $0006, $7000, $A82A;
  2781.     {$ENDC}
  2782. FUNCTION QTVideoOutputSetDisplayMode(vo: QTVideoOutputComponent; displayModeID: LONGINT): ComponentResult;
  2783.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2784.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  2785.     {$ENDC}
  2786. FUNCTION QTVideoOutputGetDisplayMode(vo: QTVideoOutputComponent; VAR displayModeID: LONGINT): ComponentResult;
  2787.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2788.     INLINE $2F3C, $0004, $0008, $7000, $A82A;
  2789.     {$ENDC}
  2790. FUNCTION QTVideoOutputCustomConfigureDisplay(vo: QTVideoOutputComponent; filter: ModalFilterUPP): ComponentResult;
  2791.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2792.     INLINE $2F3C, $0004, $0009, $7000, $A82A;
  2793.     {$ENDC}
  2794. FUNCTION QTVideoOutputSaveState(vo: QTVideoOutputComponent; VAR state: QTAtomContainer): ComponentResult;
  2795.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2796.     INLINE $2F3C, $0004, $000A, $7000, $A82A;
  2797.     {$ENDC}
  2798. FUNCTION QTVideoOutputRestoreState(vo: QTVideoOutputComponent; state: QTAtomContainer): ComponentResult;
  2799.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2800.     INLINE $2F3C, $0004, $000B, $7000, $A82A;
  2801.     {$ENDC}
  2802. FUNCTION QTVideoOutputGetGWorld(vo: QTVideoOutputComponent; VAR gw: GWorldPtr): ComponentResult;
  2803.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2804.     INLINE $2F3C, $0004, $000C, $7000, $A82A;
  2805.     {$ENDC}
  2806. FUNCTION QTVideoOutputGetGWorldParameters(vo: QTVideoOutputComponent; VAR baseAddr: Ptr; VAR rowBytes: LONGINT; VAR colorTable: CTabHandle): ComponentResult;
  2807.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2808.     INLINE $2F3C, $000C, $000D, $7000, $A82A;
  2809.     {$ENDC}
  2810. FUNCTION QTVideoOutputGetIndSoundOutput(vo: QTVideoOutputComponent; index: LONGINT; VAR outputComponent: Component): ComponentResult;
  2811.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2812.     INLINE $2F3C, $0008, $000E, $7000, $A82A;
  2813.     {$ENDC}
  2814. FUNCTION QTVideoOutputGetClock(vo: QTVideoOutputComponent; VAR clock: ComponentInstance): ComponentResult;
  2815.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2816.     INLINE $2F3C, $0004, $000F, $7000, $A82A;
  2817.     {$ENDC}
  2818. FUNCTION QTVideoOutputSetEchoPort(vo: QTVideoOutputComponent; echoPort: CGrafPtr): ComponentResult;
  2819.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2820.     INLINE $2F3C, $0004, $0010, $7000, $A82A;
  2821.     {$ENDC}
  2822. { UPP call backs }
  2823.  
  2824. CONST
  2825.     uppDataHCompletionProcInfo = $00000BC0;
  2826.     uppVdigIntProcInfo = $000003C0;
  2827.     uppSGDataProcInfo = $003BFFE0;
  2828.     uppSGModalFilterProcInfo = $00003FD0;
  2829.     uppSGGrabBottleProcInfo = $00000EF0;
  2830.     uppSGGrabCompleteBottleProcInfo = $00003EF0;
  2831.     uppSGDisplayBottleProcInfo = $0000FEF0;
  2832.     uppSGCompressBottleProcInfo = $00000EF0;
  2833.     uppSGCompressCompleteBottleProcInfo = $0000FEF0;
  2834.     uppSGAddFrameBottleProcInfo = $0003FEF0;
  2835.     uppSGTransferFrameBottleProcInfo = $0000FEF0;
  2836.     uppSGGrabCompressCompleteBottleProcInfo = $0000FFF0;
  2837.     uppSGDisplayCompressBottleProcInfo = $0003FFF0;
  2838.  
  2839. FUNCTION NewDataHCompletionProc(userRoutine: DataHCompletionProcPtr): DataHCompletionUPP;
  2840.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2841.     INLINE $2E9F;
  2842.     {$ENDC}
  2843.  
  2844. FUNCTION NewVdigIntProc(userRoutine: VdigIntProcPtr): VdigIntUPP;
  2845.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2846.     INLINE $2E9F;
  2847.     {$ENDC}
  2848.  
  2849. FUNCTION NewSGDataProc(userRoutine: SGDataProcPtr): SGDataUPP;
  2850.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2851.     INLINE $2E9F;
  2852.     {$ENDC}
  2853.  
  2854. FUNCTION NewSGModalFilterProc(userRoutine: SGModalFilterProcPtr): SGModalFilterUPP;
  2855.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2856.     INLINE $2E9F;
  2857.     {$ENDC}
  2858.  
  2859. FUNCTION NewSGGrabBottleProc(userRoutine: SGGrabBottleProcPtr): SGGrabBottleUPP;
  2860.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2861.     INLINE $2E9F;
  2862.     {$ENDC}
  2863.  
  2864. FUNCTION NewSGGrabCompleteBottleProc(userRoutine: SGGrabCompleteBottleProcPtr): SGGrabCompleteBottleUPP;
  2865.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2866.     INLINE $2E9F;
  2867.     {$ENDC}
  2868.  
  2869. FUNCTION NewSGDisplayBottleProc(userRoutine: SGDisplayBottleProcPtr): SGDisplayBottleUPP;
  2870.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2871.     INLINE $2E9F;
  2872.     {$ENDC}
  2873.  
  2874. FUNCTION NewSGCompressBottleProc(userRoutine: SGCompressBottleProcPtr): SGCompressBottleUPP;
  2875.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2876.     INLINE $2E9F;
  2877.     {$ENDC}
  2878.  
  2879. FUNCTION NewSGCompressCompleteBottleProc(userRoutine: SGCompressCompleteBottleProcPtr): SGCompressCompleteBottleUPP;
  2880.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2881.     INLINE $2E9F;
  2882.     {$ENDC}
  2883.  
  2884. FUNCTION NewSGAddFrameBottleProc(userRoutine: SGAddFrameBottleProcPtr): SGAddFrameBottleUPP;
  2885.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2886.     INLINE $2E9F;
  2887.     {$ENDC}
  2888.  
  2889. FUNCTION NewSGTransferFrameBottleProc(userRoutine: SGTransferFrameBottleProcPtr): SGTransferFrameBottleUPP;
  2890.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2891.     INLINE $2E9F;
  2892.     {$ENDC}
  2893.  
  2894. FUNCTION NewSGGrabCompressCompleteBottleProc(userRoutine: SGGrabCompressCompleteBottleProcPtr): SGGrabCompressCompleteBottleUPP;
  2895.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2896.     INLINE $2E9F;
  2897.     {$ENDC}
  2898.  
  2899. FUNCTION NewSGDisplayCompressBottleProc(userRoutine: SGDisplayCompressBottleProcPtr): SGDisplayCompressBottleUPP;
  2900.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2901.     INLINE $2E9F;
  2902.     {$ENDC}
  2903.  
  2904. PROCEDURE CallDataHCompletionProc(request: Ptr; refcon: LONGINT; err: OSErr; userRoutine: DataHCompletionUPP);
  2905.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2906.     INLINE $205F, $4E90;
  2907.     {$ENDC}
  2908.  
  2909. PROCEDURE CallVdigIntProc(flags: LONGINT; refcon: LONGINT; userRoutine: VdigIntUPP);
  2910.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2911.     INLINE $205F, $4E90;
  2912.     {$ENDC}
  2913.  
  2914. FUNCTION CallSGDataProc(c: SGChannel; p: Ptr; len: LONGINT; VAR offset: LONGINT; chRefCon: LONGINT; time: TimeValue; writeType: INTEGER; refCon: LONGINT; userRoutine: SGDataUPP): OSErr;
  2915.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2916.     INLINE $205F, $4E90;
  2917.     {$ENDC}
  2918.  
  2919. FUNCTION CallSGModalFilterProc(theDialog: DialogPtr; {CONST}VAR theEvent: EventRecord; VAR itemHit: INTEGER; refCon: LONGINT; userRoutine: SGModalFilterUPP): BOOLEAN;
  2920.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2921.     INLINE $205F, $4E90;
  2922.     {$ENDC}
  2923.  
  2924. FUNCTION CallSGGrabBottleProc(c: SGChannel; bufferNum: INTEGER; refCon: LONGINT; userRoutine: SGGrabBottleUPP): ComponentResult;
  2925.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2926.     INLINE $205F, $4E90;
  2927.     {$ENDC}
  2928.  
  2929. FUNCTION CallSGGrabCompleteBottleProc(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; refCon: LONGINT; userRoutine: SGGrabCompleteBottleUPP): ComponentResult;
  2930.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2931.     INLINE $205F, $4E90;
  2932.     {$ENDC}
  2933.  
  2934. FUNCTION CallSGDisplayBottleProc(c: SGChannel; bufferNum: INTEGER; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT; userRoutine: SGDisplayBottleUPP): ComponentResult;
  2935.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2936.     INLINE $205F, $4E90;
  2937.     {$ENDC}
  2938.  
  2939. FUNCTION CallSGCompressBottleProc(c: SGChannel; bufferNum: INTEGER; refCon: LONGINT; userRoutine: SGCompressBottleUPP): ComponentResult;
  2940.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2941.     INLINE $205F, $4E90;
  2942.     {$ENDC}
  2943.  
  2944. FUNCTION CallSGCompressCompleteBottleProc(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; VAR ci: SGCompressInfo; refCon: LONGINT; userRoutine: SGCompressCompleteBottleUPP): ComponentResult;
  2945.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2946.     INLINE $205F, $4E90;
  2947.     {$ENDC}
  2948.  
  2949. FUNCTION CallSGAddFrameBottleProc(c: SGChannel; bufferNum: INTEGER; atTime: TimeValue; scale: TimeScale; {CONST}VAR ci: SGCompressInfo; refCon: LONGINT; userRoutine: SGAddFrameBottleUPP): ComponentResult;
  2950.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2951.     INLINE $205F, $4E90;
  2952.     {$ENDC}
  2953.  
  2954. FUNCTION CallSGTransferFrameBottleProc(c: SGChannel; bufferNum: INTEGER; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT; userRoutine: SGTransferFrameBottleUPP): ComponentResult;
  2955.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2956.     INLINE $205F, $4E90;
  2957.     {$ENDC}
  2958.  
  2959. FUNCTION CallSGGrabCompressCompleteBottleProc(c: SGChannel; VAR done: BOOLEAN; VAR ci: SGCompressInfo; VAR t: TimeRecord; refCon: LONGINT; userRoutine: SGGrabCompressCompleteBottleUPP): ComponentResult;
  2960.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2961.     INLINE $205F, $4E90;
  2962.     {$ENDC}
  2963.  
  2964. FUNCTION CallSGDisplayCompressBottleProc(c: SGChannel; dataPtr: Ptr; desc: ImageDescriptionHandle; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT; userRoutine: SGDisplayCompressBottleUPP): ComponentResult;
  2965.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2966.     INLINE $205F, $4E90;
  2967.     {$ENDC}
  2968.  
  2969. {$ALIGN RESET}
  2970. {$POP}
  2971.  
  2972. {$SETC UsingIncludes := QuickTimeComponentsIncludes}
  2973.  
  2974. {$ENDC} {__QUICKTIMECOMPONENTS__}
  2975.  
  2976. {$IFC NOT UsingIncludes}
  2977.  END.
  2978. {$ENDC}
  2979.